#22387D#22387D

#22387D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.120 H 266.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#22387D
RGBrgb(34, 56, 125)
HSLhsl(225, 57%, 31%)
HSVhsv(225, 73%, 49%)
CMYKcmyk(72.8%, 55.2%, 0%, 51%)
CIE-LABlab(25.71, 16.78, -41.76)
CIE-LCHlch(25.71, 45.00, 291.89°)
OKLaboklab(36.57% -0.0064 -0.1201)
OKLCHoklch(36.57% 0.12 266.9)
XYZxyz(5.7742, 4.6485, 19.9910)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22387D #7D6722
analogous
#22657D #22387D #39227D
triadic
#22387D #7D2238 #387D22
tetradic
#22387D #7D2265 #7D6722 #227D39
square
#22387D #7D2265 #7D6722 #227D39
split-complementary
#22387D #7D3922 #657D22
monochromatic
#080D1D #15224D #22387D #2F4EAD #4B6BCE

Accessibility & contrast

On white

10.88
#22387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#22387D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22387D
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22387D#FFFFFF#000000##FFFFFF
##22387D1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07417F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22387d;
/* rgb */ color: rgb(34, 56, 125);
/* oklch */ color: oklch(36.6% 0.120 266.9);
Tailwind
colors: {
  custom: {
    50: '#6a6ea3',
    500: '#22387d',
    950: '#000000',
  },
}
SCSS
$custom: #22387d;
$custom-light: #6a6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#22387d",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 225.495,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3657,
    "c": 0.12029,
    "h": 266.9
  },
  "luminance": 0.04649
}

Semantic roles & 50–950 ramp

primary
#22387D
secondary
#B0974B
accent
#BB47E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22387D

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

Preview Lab → · Contrast checker → · Palette generator →

#22387D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva