#22287E#22287E

#22287E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.143 H 272.7°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#22287E
RGBrgb(34, 40, 126)
HSLhsl(236, 58%, 31%)
HSVhsv(236, 73%, 49%)
CMYKcmyk(73%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.44, 28.21, -49.34)
CIE-LCHlch(21.44, 56.83, 299.76°)
OKLaboklab(33.43% 0.0068 -0.1426)
OKLCHoklch(33.43% 0.143 272.7)
XYZxyz(5.1831, 3.3635, 20.1107)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22287E #7E7822
analogous
#22567E #22287E #4A227E
triadic
#22287E #7E2228 #287E22
tetradic
#22287E #7E2256 #7E7822 #227E4A
square
#22287E #7E2256 #7E7822 #227E4A
split-complementary
#22287E #7E4A22 #567E22
monochromatic
#08091E #15194E #22287E #2F37AE #4C54CF

Accessibility & contrast

On white

12.55
#22287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22287E
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22287E#FFFFFF#000000##FFFFFF
##22287E1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22287e;
/* rgb */ color: rgb(34, 40, 126);
/* oklch */ color: oklch(33.4% 0.143 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b62a4',
    500: '#22287e',
    950: '#000000',
  },
}
SCSS
$custom: #22287e;
$custom-light: #6b62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22287e",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 236.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.14272,
    "h": 272.7
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#22287E
secondary
#B1AA4B
accent
#D747E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22287E

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

Preview Lab → · Contrast checker → · Palette generator →

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