#22237E#22237E

#22237E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.149 H 273.9°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#22237E
RGBrgb(34, 35, 126)
HSLhsl(239, 58%, 31%)
HSVhsv(239, 73%, 49%)
CMYKcmyk(73%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.24, 31.48, -51.33)
CIE-LCHlch(20.24, 60.21, 301.52°)
OKLaboklab(32.55% 0.0102 -0.1484)
OKLCHoklch(32.55% 0.149 273.9)
XYZxyz(5.0254, 3.0480, 20.0581)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22237E #7E7D22
analogous
#22517E #22237E #4F227E
triadic
#22237E #7E2223 #237E22
tetradic
#22237E #7E2251 #7E7D22 #227E4F
square
#22237E #7E2251 #7E7D22 #227E4F
split-complementary
#22237E #7E4F22 #517E22
monochromatic
#08081E #15164E #22237E #2F30AE #4C4DCF

Accessibility & contrast

On white

13.05
#22237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#22237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22237E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22237E#FFFFFF#000000##FFFFFF
##22237E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22237e;
/* rgb */ color: rgb(34, 35, 126);
/* oklch */ color: oklch(32.6% 0.149 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#22237e',
    950: '#000000',
  },
}
SCSS
$custom: #22237e;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#22237e",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 239.348,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32553,
    "c": 0.14872,
    "h": 273.9
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#22237E
secondary
#B1AF4B
accent
#DF47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22237E

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

Preview Lab → · Contrast checker → · Palette generator →

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