#22397F#22397F

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

Color values

HEX#22397F
RGBrgb(34, 57, 127)
HSLhsl(225, 58%, 32%)
HSVhsv(225, 73%, 50%)
CMYKcmyk(73.2%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.15, 16.87, -42.30)
CIE-LCHlch(26.15, 45.54, 291.74°)
OKLaboklab(36.95% -0.0071 -0.1217)
OKLCHoklch(36.95% 0.122 266.6)
XYZxyz(5.9522, 4.7980, 20.6870)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22397F #7F6822
analogous
#22687F #22397F #3A227F
triadic
#22397F #7F2239 #397F22
tetradic
#22397F #7F2268 #7F6822 #227F3A
square
#22397F #7F2268 #7F6822 #227F3A
split-complementary
#22397F #7F3A22 #687F22
monochromatic
#080E1E #15234F #22397F #2F4FAF #4C6DCF

Accessibility & contrast

On white

10.72
#22397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#22397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22397F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22397F#FFFFFF#000000##FFFFFF
##22397F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #22397f;
/* rgb */ color: rgb(34, 57, 127);
/* oklch */ color: oklch(37.0% 0.122 266.6);
Tailwind
colors: {
  custom: {
    50: '#6a6ea5',
    500: '#22397f',
    950: '#000000',
  },
}
SCSS
$custom: #22397f;
$custom-light: #6a6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#22397f",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 225.161,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36953,
    "c": 0.1219,
    "h": 266.6
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#22397F
secondary
#B2984B
accent
#BB47E1
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #22397F

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

Preview Lab → · Contrast checker → · Palette generator →

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