#22317B#22317B

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

Color values

HEX#22317B
RGBrgb(34, 49, 123)
HSLhsl(230, 57%, 31%)
HSVhsv(230, 72%, 48%)
CMYKcmyk(72.4%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.56, 20.89, -43.99)
CIE-LCHlch(23.56, 48.69, 295.40°)
OKLaboklab(34.91% -0.0003 -0.1268)
OKLCHoklch(34.91% 0.127 269.9)
XYZxyz(5.3319, 3.9662, 19.2196)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22317B #7B6C22
analogous
#225D7B #22317B #3F227B
triadic
#22317B #7B2231 #317B22
tetradic
#22317B #7B225D #7B6C22 #227B3F
square
#22317B #7B225D #7B6C22 #227B3F
split-complementary
#22317B #7B3F22 #5D7B22
monochromatic
#070B1B #151E4B #22317B #2F44AB #4A60CD

Accessibility & contrast

On white

11.71
#22317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#22317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22317B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22317B#FFFFFF#000000##FFFFFF
##22317B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22317b;
/* rgb */ color: rgb(34, 49, 123);
/* oklch */ color: oklch(34.9% 0.127 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a68a2',
    500: '#22317b',
    950: '#000000',
  },
}
SCSS
$custom: #22317b;
$custom-light: #6a68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22317b",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 229.888,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34906,
    "c": 0.12676,
    "h": 269.9
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#22317B
secondary
#AE9D4B
accent
#C648E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22317B

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

Preview Lab → · Contrast checker → · Palette generator →

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