#22387E#22387E

#22387E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.122 H 267.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#22387E
RGBrgb(34, 56, 126)
HSLhsl(226, 58%, 31%)
HSVhsv(226, 73%, 49%)
CMYKcmyk(73%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.79, 17.17, -42.27)
CIE-LCHlch(25.79, 45.62, 292.11°)
OKLaboklab(36.65% -0.0063 -0.1216)
OKLCHoklch(36.65% 0.122 267)
XYZxyz(5.8384, 4.6742, 20.3291)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22387E #7E6822
analogous
#22667E #22387E #3A227E
triadic
#22387E #7E2238 #387E22
tetradic
#22387E #7E2266 #7E6822 #227E3A
square
#22387E #7E2266 #7E6822 #227E3A
split-complementary
#22387E #7E3A22 #667E22
monochromatic
#080D1E #15234E #22387E #2F4DAE #4C6BCF

Accessibility & contrast

On white

10.85
#22387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#22387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22387E
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22387E#FFFFFF#000000##FFFFFF
##22387E1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22387e;
/* rgb */ color: rgb(34, 56, 126);
/* oklch */ color: oklch(36.7% 0.122 267.0);
Tailwind
colors: {
  custom: {
    50: '#6a6ea4',
    500: '#22387e',
    950: '#000000',
  },
}
SCSS
$custom: #22387e;
$custom-light: #6a6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#22387e",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 225.652,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36652,
    "c": 0.12176,
    "h": 267
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#22387E
secondary
#B1984B
accent
#BC47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22387E

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

Preview Lab → · Contrast checker → · Palette generator →

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