#22237F#22237F

#22237F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.150 H 273.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#22237F
RGBrgb(34, 35, 127)
HSLhsl(239, 58%, 32%)
HSVhsv(239, 73%, 50%)
CMYKcmyk(73.2%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.34, 31.84, -51.79)
CIE-LCHlch(20.34, 60.79, 301.58°)
OKLaboklab(32.66% 0.01 -0.1497)
OKLCHoklch(32.66% 0.15 273.8)
XYZxyz(5.0902, 3.0740, 20.3996)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22237F #7F7E22
analogous
#22527F #22237F #50227F
triadic
#22237F #7F2223 #237F22
tetradic
#22237F #7F2252 #7F7E22 #227F50
square
#22237F #7F2252 #7F7E22 #227F50
split-complementary
#22237F #7F5022 #527F22
monochromatic
#08081E #15164F #22237F #2F30AF #4C4ECF

Accessibility & contrast

On white

13.00
#22237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22237F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22237F#FFFFFF#000000##FFFFFF
##22237F1.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22237f;
/* rgb */ color: rgb(34, 35, 127);
/* oklch */ color: oklch(32.7% 0.150 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c5ea5',
    500: '#22237f',
    950: '#000000',
  },
}
SCSS
$custom: #22237f;
$custom-light: #6c5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#22237f",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 239.355,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32658,
    "c": 0.15006,
    "h": 273.8
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#22237F
secondary
#B2B04B
accent
#DF47E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #22237F

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

Preview Lab → · Contrast checker → · Palette generator →

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