#22247C#22247C

#22247C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.145 H 273.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#22247C
RGBrgb(34, 36, 124)
HSLhsl(239, 57%, 31%)
HSVhsv(239, 73%, 49%)
CMYKcmyk(72.6%, 71%, 0%, 51.4%)
CIE-LABlab(20.27, 30.10, -50.00)
CIE-LCHlch(20.27, 58.36, 301.05°)
OKLaboklab(32.52% 0.0098 -0.1445)
OKLCHoklch(32.52% 0.145 273.9)
XYZxyz(4.9274, 3.0566, 19.3952)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22247C #7C7A22
analogous
#22517C #22247C #4D227C
triadic
#22247C #7C2224 #247C22
tetradic
#22247C #7C2251 #7C7A22 #227C4D
square
#22247C #7C2251 #7C7A22 #227C4D
split-complementary
#22247C #7C4D22 #517C22
monochromatic
#08081C #15164C #22247C #2F32AC #4B4ECE

Accessibility & contrast

On white

13.03
#22247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#22247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22247C
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22247C#FFFFFF#000000##FFFFFF
##22247C1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22247c;
/* rgb */ color: rgb(34, 36, 124);
/* oklch */ color: oklch(32.5% 0.145 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b5fa3',
    500: '#22247c',
    950: '#000000',
  },
}
SCSS
$custom: #22247c;
$custom-light: #6b5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#22247c",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 238.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32516,
    "c": 0.14483,
    "h": 273.9
  },
  "luminance": 0.03057
}

Semantic roles & 50–950 ramp

primary
#22247C
secondary
#AFAC4B
accent
#DD48E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22247C

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

Preview Lab → · Contrast checker → · Palette generator →

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