#22137E#22137E

#22137E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.165 H 276.5°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#22137E
RGBrgb(34, 19, 126)
HSLhsl(248, 74%, 28%)
HSVhsv(248, 85%, 49%)
CMYKcmyk(73%, 84.9%, 0%, 50.6%)
CIE-LABlab(17.04, 40.53, -56.59)
CIE-LCHlch(17.04, 69.61, 305.61°)
OKLaboklab(30.3% 0.0186 -0.1635)
OKLCHoklch(30.3% 0.165 276.5)
XYZxyz(4.6572, 2.3117, 19.9354)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22137E #6F7E13
analogous
#13397E #22137E #57137E
triadic
#22137E #7E2213 #137E22
tetradic
#22137E #7E1339 #6F7E13 #137E57
square
#22137E #7E1339 #6F7E13 #137E57
split-complementary
#22137E #7E5713 #397E13
monochromatic
#07041B #140B49 #22137E #301BB3 #452CDF

Accessibility & contrast

On white

14.36
#22137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22137E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22137E#FFFFFF#000000##FFFFFF
##22137E1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22137e;
/* rgb */ color: rgb(34, 19, 126);
/* oklch */ color: oklch(30.3% 0.165 276.5);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#22137e',
    950: '#000000',
  },
}
SCSS
$custom: #22137e;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22137e",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 248.411,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30303,
    "c": 0.1646,
    "h": 276.5
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#22137E
secondary
#A2B439
accent
#F037D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22137E

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

Preview Lab → · Contrast checker → · Palette generator →

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