#22387F#22387F

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

Color values

HEX#22387F
RGBrgb(34, 56, 127)
HSLhsl(226, 58%, 32%)
HSVhsv(226, 73%, 50%)
CMYKcmyk(73.2%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.86, 17.57, -42.77)
CIE-LCHlch(25.86, 46.24, 292.33°)
OKLaboklab(36.74% -0.0062 -0.1231)
OKLCHoklch(36.74% 0.123 267.1)
XYZxyz(5.9033, 4.7001, 20.6707)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22387F #7F6922
analogous
#22677F #22387F #3A227F
triadic
#22387F #7F2238 #387F22
tetradic
#22387F #7F2267 #7F6922 #227F3A
square
#22387F #7F2267 #7F6922 #227F3A
split-complementary
#22387F #7F3A22 #677F22
monochromatic
#080D1E #15234F #22387F #2F4DAF #4C6BCF

Accessibility & contrast

On white

10.82
#22387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22387F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22387F#FFFFFF#000000##FFFFFF
##22387F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22387f;
/* rgb */ color: rgb(34, 56, 127);
/* oklch */ color: oklch(36.7% 0.123 267.1);
Tailwind
colors: {
  custom: {
    50: '#6a6ea5',
    500: '#22387f',
    950: '#000000',
  },
}
SCSS
$custom: #22387f;
$custom-light: #6a6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#22387f",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 225.806,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36735,
    "c": 0.12324,
    "h": 267.1
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#22387F
secondary
#B2994B
accent
#BD47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22387F

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

Preview Lab → · Contrast checker → · Palette generator →

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