#22387C#22387C

#22387C is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.119 H 266.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#22387C
RGBrgb(34, 56, 124)
HSLhsl(225, 57%, 31%)
HSVhsv(225, 73%, 49%)
CMYKcmyk(72.6%, 54.8%, 0%, 51.4%)
CIE-LABlab(25.63, 16.38, -41.25)
CIE-LCHlch(25.63, 44.39, 291.66°)
OKLaboklab(36.49% -0.0065 -0.1186)
OKLCHoklch(36.49% 0.119 266.9)
XYZxyz(5.7107, 4.6231, 19.6563)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22387C #7C6622
analogous
#22657C #22387C #39227C
triadic
#22387C #7C2238 #387C22
tetradic
#22387C #7C2265 #7C6622 #227C39
square
#22387C #7C2265 #7C6622 #227C39
split-complementary
#22387C #7C3922 #657C22
monochromatic
#080D1C #15224C #22387C #2F4EAC #4B6BCE

Accessibility & contrast

On white

10.91
#22387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#22387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22387C
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22387C#FFFFFF#000000##FFFFFF
##22387C1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417E
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22387c;
/* rgb */ color: rgb(34, 56, 124);
/* oklch */ color: oklch(36.5% 0.119 266.9);
Tailwind
colors: {
  custom: {
    50: '#6a6ea2',
    500: '#22387c',
    950: '#000000',
  },
}
SCSS
$custom: #22387c;
$custom-light: #6a6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#22387c",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 225.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36488,
    "c": 0.1188,
    "h": 266.9
  },
  "luminance": 0.04624
}

Semantic roles & 50–950 ramp

primary
#22387C
secondary
#AF964B
accent
#BB48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22387C

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

Preview Lab → · Contrast checker → · Palette generator →

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