#22237C#22237C

#22237C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.146 H 274.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#22237C
RGBrgb(34, 35, 124)
HSLhsl(239, 57%, 31%)
HSVhsv(239, 73%, 49%)
CMYKcmyk(72.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.03, 30.75, -50.39)
CIE-LCHlch(20.03, 59.03, 301.39°)
OKLaboklab(32.35% 0.0105 -0.1456)
OKLCHoklch(32.35% 0.146 274.1)
XYZxyz(4.8976, 2.9969, 19.3852)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22237C #7C7B22
analogous
#22507C #22237C #4E227C
triadic
#22237C #7C2223 #237C22
tetradic
#22237C #7C2250 #7C7B22 #227C4E
square
#22237C #7C2250 #7C7B22 #227C4E
split-complementary
#22237C #7C4E22 #507C22
monochromatic
#08081C #15154C #22237C #2F31AC #4B4CCE

Accessibility & contrast

On white

13.13
#22237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22237C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22237C#FFFFFF#000000##FFFFFF
##22237C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22237c;
/* rgb */ color: rgb(34, 35, 124);
/* oklch */ color: oklch(32.3% 0.146 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ea3',
    500: '#22237c',
    950: '#000000',
  },
}
SCSS
$custom: #22237c;
$custom-light: #6b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#22237c",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 239.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32345,
    "c": 0.14602,
    "h": 274.1
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#22237C
secondary
#AFAE4B
accent
#DF48E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22237C

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

Preview Lab → · Contrast checker → · Palette generator →

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