#22387B#22387B

#22387B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.117 H 266.8°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#22387B
RGBrgb(34, 56, 123)
HSLhsl(225, 57%, 31%)
HSVhsv(225, 72%, 48%)
CMYKcmyk(72.4%, 54.5%, 0%, 51.8%)
CIE-LABlab(25.56, 15.99, -40.75)
CIE-LCHlch(25.56, 43.77, 291.42°)
OKLaboklab(36.41% -0.0066 -0.1171)
OKLCHoklch(36.41% 0.117 266.8)
XYZxyz(5.6478, 4.5979, 19.3249)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22387B #7B6522
analogous
#22647B #22387B #39227B
triadic
#22387B #7B2238 #387B22
tetradic
#22387B #7B2264 #7B6522 #227B39
square
#22387B #7B2264 #7B6522 #227B39
split-complementary
#22387B #7B3922 #647B22
monochromatic
#070C1B #15224B #22387B #2F4EAB #4A6BCD

Accessibility & contrast

On white

10.94
#22387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22387B
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22387B#FFFFFF#000000##FFFFFF
##22387B1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22387b;
/* rgb */ color: rgb(34, 56, 123);
/* oklch */ color: oklch(36.4% 0.117 266.8);
Tailwind
colors: {
  custom: {
    50: '#696ea2',
    500: '#22387b',
    950: '#000000',
  },
}
SCSS
$custom: #22387b;
$custom-light: #696ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#22387b",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 225.169,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36407,
    "c": 0.11732,
    "h": 266.8
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

primary
#22387B
secondary
#AE954B
accent
#BA48E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22387B

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

Preview Lab → · Contrast checker → · Palette generator →

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