#222A7C#222A7C

#222A7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.137 H 272.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#222A7C
RGBrgb(34, 42, 124)
HSLhsl(235, 57%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(72.6%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.77, 26.11, -47.55)
CIE-LCHlch(21.77, 54.24, 298.77°)
OKLaboklab(33.61% 0.0054 -0.1373)
OKLCHoklch(33.61% 0.137 272.3)
XYZxyz(5.1245, 3.4507, 19.4609)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A7C #7C7422
analogous
#22577C #222A7C #47227C
triadic
#222A7C #7C222A #2A7C22
tetradic
#222A7C #7C2257 #7C7422 #227C47
square
#222A7C #7C2257 #7C7422 #227C47
split-complementary
#222A7C #7C4722 #577C22
monochromatic
#08091C #151A4C #222A7C #2F3AAC #4B56CE

Accessibility & contrast

On white

12.42
#222A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A7C
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A7C#FFFFFF#000000##FFFFFF
##222A7C1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222a7c;
/* rgb */ color: rgb(34, 42, 124);
/* oklch */ color: oklch(33.6% 0.137 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b63a3',
    500: '#222a7c',
    950: '#000000',
  },
}
SCSS
$custom: #222a7c;
$custom-light: #6b63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222a7c",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 234.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33606,
    "c": 0.1374,
    "h": 272.3
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#222A7C
secondary
#AFA64B
accent
#D348E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #222A7C

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

Preview Lab → · Contrast checker → · Palette generator →

#222A7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva