#22137B#22137B

#22137B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.161 H 277.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#22137B
RGBrgb(34, 19, 123)
HSLhsl(249, 73%, 28%)
HSVhsv(249, 85%, 48%)
CMYKcmyk(72.4%, 84.6%, 0%, 51.8%)
CIE-LABlab(16.68, 39.58, -55.29)
CIE-LCHlch(16.68, 67.99, 305.60°)
OKLaboklab(29.94% 0.0195 -0.1598)
OKLCHoklch(29.94% 0.161 277)
XYZxyz(4.4665, 2.2355, 18.9312)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22137B #6C7B13
analogous
#13387B #22137B #56137B
triadic
#22137B #7B2213 #137B22
tetradic
#22137B #7B1338 #6C7B13 #137B56
square
#22137B #7B1338 #6C7B13 #137B56
split-complementary
#22137B #7B5613 #387B13
monochromatic
#07041B #130B46 #22137B #311BB0 #442ADE

Accessibility & contrast

On white

14.51
#22137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#22137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22137B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22137B#FFFFFF#000000##FFFFFF
##22137B1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22137b;
/* rgb */ color: rgb(34, 19, 123);
/* oklch */ color: oklch(29.9% 0.161 277.0);
Tailwind
colors: {
  custom: {
    50: '#6d55a2',
    500: '#22137b',
    950: '#000000',
  },
}
SCSS
$custom: #22137b;
$custom-light: #6d55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22137b",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 248.654,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29942,
    "c": 0.16095,
    "h": 277
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#22137B
secondary
#A0B139
accent
#F038D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22137B

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

Preview Lab → · Contrast checker → · Palette generator →

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