#2222B0#2222B0

#2222B0 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.212 H 270.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2222B0
RGBrgb(34, 34, 176)
HSLhsl(240, 68%, 41%)
HSVhsv(240, 81%, 69%)
CMYKcmyk(80.7%, 80.7%, 0%, 31%)
CIE-LABlab(25.62, 49.07, -73.23)
CIE-LCHlch(25.62, 88.15, 303.82°)
OKLaboklab(38% 0.0012 -0.212)
OKLCHoklch(38% 0.212 270.3)
XYZxyz(9.0655, 4.6177, 41.4794)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222B0 #B0B022
analogous
#2269B0 #2222B0 #6922B0
triadic
#2222B0 #B02222 #22B022
tetradic
#2222B0 #B02269 #B0B022 #22B069
square
#2222B0 #B02269 #B0B022 #22B069
split-complementary
#2222B0 #B06922 #69B022
monochromatic
#0E0E49 #18187D #2222B0 #3737D8 #6A6AE2

Accessibility & contrast

On white

10.92
#2222B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2222B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2222B0
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2222B0#FFFFFF#000000##FFFFFF
##2222B01.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0035AE
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2222b0;
/* rgb */ color: rgb(34, 34, 176);
/* oklch */ color: oklch(38.0% 0.212 270.3);
Tailwind
colors: {
  custom: {
    50: '#7961c9',
    500: '#2222b0',
    950: '#000000',
  },
}
SCSS
$custom: #2222b0;
$custom-light: #7961c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2222b0",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 176
  },
  "hsl": {
    "h": 240,
    "s": 67.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38003,
    "c": 0.21204,
    "h": 270.3
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#2222B0
secondary
#C8C866
accent
#EA3DEA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2222B0

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2222B0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva