#22237D#22237D

#22237D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.147 H 274.0°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#22237D
RGBrgb(34, 35, 125)
HSLhsl(239, 57%, 31%)
HSVhsv(239, 73%, 49%)
CMYKcmyk(72.8%, 72%, 0%, 51%)
CIE-LABlab(20.13, 31.12, -50.86)
CIE-LCHlch(20.13, 59.62, 301.46°)
OKLaboklab(32.45% 0.0103 -0.147)
OKLCHoklch(32.45% 0.147 274)
XYZxyz(4.9612, 3.0223, 19.7200)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22237D #7D7C22
analogous
#22507D #22237D #4E227D
triadic
#22237D #7D2223 #237D22
tetradic
#22237D #7D2250 #7D7C22 #227D4E
square
#22237D #7D2250 #7D7C22 #227D4E
split-complementary
#22237D #7D4E22 #507D22
monochromatic
#08081D #15164D #22237D #2F30AD #4B4DCE

Accessibility & contrast

On white

13.09
#22237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#22237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22237D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22237D#FFFFFF#000000##FFFFFF
##22237D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22237d;
/* rgb */ color: rgb(34, 35, 125);
/* oklch */ color: oklch(32.4% 0.147 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#22237d',
    950: '#000000',
  },
}
SCSS
$custom: #22237d;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#22237d",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 239.341,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32449,
    "c": 0.14737,
    "h": 274
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#22237D
secondary
#B0AF4B
accent
#DF47E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22237D

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

Preview Lab → · Contrast checker → · Palette generator →

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