#22287D#22287D

#22287D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.141 H 272.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#22287D
RGBrgb(34, 40, 125)
HSLhsl(236, 57%, 31%)
HSVhsv(236, 73%, 49%)
CMYKcmyk(72.8%, 68%, 0%, 51%)
CIE-LABlab(21.35, 27.83, -48.86)
CIE-LCHlch(21.35, 56.23, 299.67°)
OKLaboklab(33.33% 0.0068 -0.1412)
OKLCHoklch(33.33% 0.141 272.8)
XYZxyz(5.1189, 3.3378, 19.7726)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22287D #7D7722
analogous
#22557D #22287D #49227D
triadic
#22287D #7D2228 #287D22
tetradic
#22287D #7D2255 #7D7722 #227D49
square
#22287D #7D2255 #7D7722 #227D49
split-complementary
#22287D #7D4922 #557D22
monochromatic
#08091D #15194D #22287D #2F37AD #4B54CE

Accessibility & contrast

On white

12.59
#22287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#22287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22287D
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22287D#FFFFFF#000000##FFFFFF
##22287D1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22287d;
/* rgb */ color: rgb(34, 40, 125);
/* oklch */ color: oklch(33.3% 0.141 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b62a3',
    500: '#22287d',
    950: '#000000',
  },
}
SCSS
$custom: #22287d;
$custom-light: #6b62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22287d",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 236.044,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.14133,
    "h": 272.8
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#22287D
secondary
#B0A94B
accent
#D647E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22287D

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

Preview Lab → · Contrast checker → · Palette generator →

#22287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva