#22247E#22247E

#22247E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.148 H 273.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#22247E
RGBrgb(34, 36, 126)
HSLhsl(239, 58%, 31%)
HSVhsv(239, 73%, 49%)
CMYKcmyk(73%, 71.4%, 0%, 50.6%)
CIE-LABlab(20.47, 30.84, -50.94)
CIE-LCHlch(20.47, 59.54, 301.19°)
OKLaboklab(32.72% 0.0095 -0.1472)
OKLCHoklch(32.72% 0.148 273.7)
XYZxyz(5.0552, 3.1077, 20.0681)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22247E #7E7C22
analogous
#22527E #22247E #4E227E
triadic
#22247E #7E2224 #247E22
tetradic
#22247E #7E2252 #7E7C22 #227E4E
square
#22247E #7E2252 #7E7C22 #227E4E
split-complementary
#22247E #7E4E22 #527E22
monochromatic
#08081E #15164E #22247E #2F32AE #4C4FCF

Accessibility & contrast

On white

12.95
#22247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#22247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22247E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22247E#FFFFFF#000000##FFFFFF
##22247E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22247e;
/* rgb */ color: rgb(34, 36, 126);
/* oklch */ color: oklch(32.7% 0.148 273.7);
Tailwind
colors: {
  custom: {
    50: '#6c5fa4',
    500: '#22247e',
    950: '#000000',
  },
}
SCSS
$custom: #22247e;
$custom-light: #6c5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#22247e",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 238.696,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32722,
    "c": 0.14756,
    "h": 273.7
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#22247E
secondary
#B1AE4B
accent
#DD47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22247E

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

Preview Lab → · Contrast checker → · Palette generator →

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