#222372#222372

#222372 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.132 H 275.1°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#222372
RGBrgb(34, 35, 114)
HSLhsl(239, 54%, 29%)
HSVhsv(239, 70%, 45%)
CMYKcmyk(70.2%, 69.3%, 0%, 55.3%)
CIE-LABlab(19.04, 27.08, -45.61)
CIE-LCHlch(19.04, 53.04, 300.70°)
OKLaboklab(31.33% 0.0117 -0.1317)
OKLCHoklch(31.33% 0.132 275.1)
XYZxyz(4.2970, 2.7567, 16.2220)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222372 #727122
analogous
#224B72 #222372 #492272
triadic
#222372 #722223 #237222
tetradic
#222372 #72224B #727122 #227249
square
#222372 #72224B #727122 #227249
split-complementary
#222372 #724922 #4B7222
monochromatic
#070718 #141543 #222372 #3031A1 #4648C8

Accessibility & contrast

On white

13.54
#222372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#222372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222372
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222372#FFFFFF#000000##FFFFFF
##2223721.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #222372;
/* rgb */ color: rgb(34, 35, 114);
/* oklch */ color: oklch(31.3% 0.132 275.1);
Tailwind
colors: {
  custom: {
    50: '#695e9b',
    500: '#222372',
    950: '#000000',
  },
}
SCSS
$custom: #222372;
$custom-light: #695e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222372",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 114
  },
  "hsl": {
    "h": 239.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31327,
    "c": 0.13218,
    "h": 275.1
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#222372
secondary
#A5A44B
accent
#DC4ADD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222372

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

Preview Lab → · Contrast checker → · Palette generator →

#222372 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva