#22317D#22317D

#22317D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.130 H 269.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#22317D
RGBrgb(34, 49, 125)
HSLhsl(230, 57%, 31%)
HSVhsv(230, 73%, 49%)
CMYKcmyk(72.8%, 60.8%, 0%, 51%)
CIE-LABlab(23.73, 21.67, -44.98)
CIE-LCHlch(23.73, 49.93, 295.72°)
OKLaboklab(35.08% -0.0003 -0.1297)
OKLCHoklch(35.08% 0.13 269.9)
XYZxyz(5.4584, 4.0168, 19.8857)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22317D #7D6E22
analogous
#225E7D #22317D #40227D
triadic
#22317D #7D2231 #317D22
tetradic
#22317D #7D225E #7D6E22 #227D40
square
#22317D #7D225E #7D6E22 #227D40
split-complementary
#22317D #7D4022 #5E7D22
monochromatic
#080B1D #151E4D #22317D #2F44AD #4B61CE

Accessibility & contrast

On white

11.64
#22317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#22317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22317D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22317D#FFFFFF#000000##FFFFFF
##22317D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22317d;
/* rgb */ color: rgb(34, 49, 125);
/* oklch */ color: oklch(35.1% 0.130 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#22317d',
    950: '#000000',
  },
}
SCSS
$custom: #22317d;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22317d",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 230.11,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.12968,
    "h": 269.9
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#22317D
secondary
#B09F4B
accent
#C747E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22317D

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

Preview Lab → · Contrast checker → · Palette generator →

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