#222684#222684

#222684 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.153 H 272.8°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#222684
RGBrgb(34, 38, 132)
HSLhsl(238, 59%, 33%)
HSVhsv(238, 74%, 52%)
CMYKcmyk(74.2%, 71.2%, 0%, 48.2%)
CIE-LABlab(21.55, 31.74, -52.96)
CIE-LCHlch(21.55, 61.74, 300.93°)
OKLaboklab(33.68% 0.0074 -0.1531)
OKLCHoklch(33.68% 0.153 272.8)
XYZxyz(5.5163, 3.3917, 22.1893)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222684 #848022
analogous
#225784 #222684 #4F2284
triadic
#222684 #842226 #268422
tetradic
#222684 #842257 #848022 #22844F
square
#222684 #842257 #848022 #22844F
split-complementary
#222684 #844F22 #578422
monochromatic
#090A23 #151853 #222684 #2F34B5 #4F54D2

Accessibility & contrast

On white

12.51
#222684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#222684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222684
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222684#FFFFFF#000000##FFFFFF
##2226841.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222684;
/* rgb */ color: rgb(34, 38, 132);
/* oklch */ color: oklch(33.7% 0.153 272.8);
Tailwind
colors: {
  custom: {
    50: '#6d61a9',
    500: '#222684',
    950: '#000000',
  },
}
SCSS
$custom: #222684;
$custom-light: #6d61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#222684",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 237.551,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33684,
    "c": 0.15332,
    "h": 272.8
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#222684
secondary
#B5B14D
accent
#DC46E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222684

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

Preview Lab → · Contrast checker → · Palette generator →

#222684 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva