#22417D#22417D

#22417D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.108 H 262.1°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#22417D
RGBrgb(34, 65, 125)
HSLhsl(220, 57%, 31%)
HSVhsv(220, 73%, 49%)
CMYKcmyk(72.8%, 48%, 0%, 51%)
CIE-LABlab(28.38, 10.52, -37.45)
CIE-LCHlch(28.38, 38.90, 285.68°)
OKLaboklab(38.61% -0.015 -0.1073)
OKLCHoklch(38.61% 0.108 262.1)
XYZxyz(6.2503, 5.6007, 20.1497)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22417D #7D5E22
analogous
#226E7D #22417D #30227D
triadic
#22417D #7D2241 #417D22
tetradic
#22417D #7D226E #7D5E22 #227D30
square
#22417D #7D226E #7D5E22 #227D30
split-complementary
#22417D #7D3022 #6E7D22
monochromatic
#080F1D #15284D #22417D #2F5AAD #4B78CE

Accessibility & contrast

On white

9.90
#22417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#22417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22417D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22417D#FFFFFF#000000##FFFFFF
##22417D1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#0F3F7C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #22417d;
/* rgb */ color: rgb(34, 65, 125);
/* oklch */ color: oklch(38.6% 0.108 262.1);
Tailwind
colors: {
  custom: {
    50: '#6975a3',
    500: '#22417d',
    950: '#000000',
  },
}
SCSS
$custom: #22417d;
$custom-light: #6975a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22417d",
  "rgb": {
    "r": 34,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 219.56,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38607,
    "c": 0.10832,
    "h": 262.1
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

primary
#22417D
secondary
#B08D4B
accent
#AC47E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #22417D

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

Preview Lab → · Contrast checker → · Palette generator →

#22417D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva