#22137D#22137D

#22137D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.163 H 276.6°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#22137D
RGBrgb(34, 19, 125)
HSLhsl(248, 74%, 28%)
HSVhsv(248, 85%, 49%)
CMYKcmyk(72.8%, 84.8%, 0%, 51%)
CIE-LABlab(16.92, 40.21, -56.16)
CIE-LCHlch(16.92, 69.07, 305.61°)
OKLaboklab(30.18% 0.0189 -0.1623)
OKLCHoklch(30.18% 0.163 276.6)
XYZxyz(4.5930, 2.2861, 19.5973)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22137D #6E7D13
analogous
#13397D #22137D #57137D
triadic
#22137D #7D2213 #137D22
tetradic
#22137D #7D1339 #6E7D13 #137D57
square
#22137D #7D1339 #6E7D13 #137D57
split-complementary
#22137D #7D5713 #397D13
monochromatic
#07041B #140B48 #22137D #301BB2 #452CDF

Accessibility & contrast

On white

14.41
#22137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#22137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22137D
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22137D#FFFFFF#000000##FFFFFF
##22137D1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22137d;
/* rgb */ color: rgb(34, 19, 125);
/* oklch */ color: oklch(30.2% 0.163 276.6);
Tailwind
colors: {
  custom: {
    50: '#6d55a4',
    500: '#22137d',
    950: '#000000',
  },
}
SCSS
$custom: #22137d;
$custom-light: #6d55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22137d",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 248.491,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30183,
    "c": 0.16339,
    "h": 276.6
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#22137D
secondary
#A1B339
accent
#F038D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22137D

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

Preview Lab → · Contrast checker → · Palette generator →

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