#22397E#22397E

#22397E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.120 H 266.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#22397E
RGBrgb(34, 57, 126)
HSLhsl(225, 58%, 31%)
HSVhsv(225, 73%, 49%)
CMYKcmyk(73%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.08, 16.47, -41.80)
CIE-LCHlch(26.08, 44.93, 291.51°)
OKLaboklab(36.87% -0.0072 -0.1202)
OKLCHoklch(36.87% 0.12 266.6)
XYZxyz(5.8874, 4.7721, 20.3455)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22397E #7E6722
analogous
#22677E #22397E #39227E
triadic
#22397E #7E2239 #397E22
tetradic
#22397E #7E2267 #7E6722 #227E39
square
#22397E #7E2267 #7E6722 #227E39
split-complementary
#22397E #7E3922 #677E22
monochromatic
#080D1E #15234E #22397E #2F4FAE #4C6CCF

Accessibility & contrast

On white

10.74
#22397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#22397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22397E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22397E#FFFFFF#000000##FFFFFF
##22397E1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094280
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #22397e;
/* rgb */ color: rgb(34, 57, 126);
/* oklch */ color: oklch(36.9% 0.120 266.6);
Tailwind
colors: {
  custom: {
    50: '#6a6ea4',
    500: '#22397e',
    950: '#000000',
  },
}
SCSS
$custom: #22397e;
$custom-light: #6a6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#22397e",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 225,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36871,
    "c": 0.12043,
    "h": 266.6
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#22397E
secondary
#B1974B
accent
#BA47E1
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22397E

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

Preview Lab → · Contrast checker → · Palette generator →

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