WordGPT

#2222EE color

#2222EE is a vivid blue colour. It is rgb(34, 34, 238) in RGB and hsl(240, 86%, 53%) in HSL. Text in white reads better on it: the contrast is 8.30:1 against white and 2.53:1 against black.

#2222EE
#2222EE: #2222EE
Complementary#2222EE#EEEE22Analogous#2288EE#2222EE#8822EETriadic#2222EE#EE2222#22EE22Tetradic (square)#2222EE#EE2288#EEEE22#22EE88Split complementary#2222EE#EE8822#88EE22
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
0606280b0b4f11117717179f1c1cc62222ee4747f16c6cf49191f7b5b5f9dadafc
From dark shades (left, mixed with black) to light tints (right, mixed with white)

How to work it out

  1. 1

    A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).

    \mathrm{#2222EE}:\quad R=\mathrm{22}_{16}=34,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{EE}_{16}=238
  2. 2

    HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.

    H=240∘,S=86%,L=53%H=240^\circ,\quad S=86\%,\quad L=53\%
  3. 3

    The complementary colour sits opposite on the wheel: add 180° to the hue.

    240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#EEEE22}
  4. 4

    Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).

    contrast=L1+0.05L2+0.05=8.30:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 8.30:1\ \text{(on white)}
LaTeX source of the formulas on this page
\[ \mathrm{#2222EE} = \mathrm{rgb}(34, 34, 238) \]
\[ \mathrm{#2222EE}:\quad R=\mathrm{22}_{16}=34,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{EE}_{16}=238 \]
\[ H=240^\circ,\quad S=86\%,\quad L=53\% \]
\[ 240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#EEEE22} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 8.30:1\ \text{(on white)} \]

#2222EE in every colour format

FormatValue
HEX#2222EE
RGBrgb(34, 34, 238)
RGB (percent)rgb(13.3%, 13.3%, 93.3%)
HSLhsl(240, 86%, 53%)
HSV / HSBhsv(240, 86%, 93%)
CMYKcmyk(86%, 86%, 0%, 7%)
Decimal2237166
Descriptionvivid blue

Text contrast (WCAG)

Background of this colour with…ContrastAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White text8.30:1passpasspasspass
Black text2.53:1failfailfailfail

Shades and tints

KindHex codes (darkest to lightest)
Shades (mixed with black)#060628 #0B0B4F #111177 #17179F #1C1CC6
This colour#2222EE
Tints (mixed with white)#4747F1 #6C6CF4 #9191F7 #B5B5F9 #DADAFC

How it looks with colour blindness

TypeHexDistance from the original
Protanopia#0059F333
Deuteranopia#0043EB21
Tritanopia#00688E105
Grayscale#4E4E4E-

Nearest named colours

NameHex
Medium blue#0000CD
Blue#0000FF
Blue violet#8A2BE2
Dark violet#9400D3

Questions

What is the RGB value of #2222EE?

rgb(34, 34, 238): red 34, green 34, blue 238.

What is the HSL value of #2222EE?

hsl(240, 86%, 53%): a hue of 240°, 86% saturation and 53% lightness.

What is the complementary colour of #2222EE?

#EEEE22, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #DDDD11.

Should I use white or black text on #2222EE?

White. White gives 8.30:1 and black 2.53:1; the better one passes WCAG AA for normal text.

What is the CMYK value of #2222EE?

cmyk(86%, 86%, 0%, 7%). This is a simple formula conversion; printed colours depend on the printer profile.

What is the closest named colour to #2222EE?

Medium blue (#0000CD).

Matching colours

A little darker, a little lighter

Make a palette

    #2222EE color: RGB, HSL, CMYK, shades and matching palettes | WordGPT