#22237A#22237A

#22237A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.143 H 274.3°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#22237A
RGBrgb(34, 35, 122)
HSLhsl(239, 56%, 31%)
HSVhsv(239, 72%, 48%)
CMYKcmyk(72.1%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.83, 30.02, -49.45)
CIE-LCHlch(19.83, 57.85, 301.26°)
OKLaboklab(32.14% 0.0107 -0.1429)
OKLCHoklch(32.14% 0.143 274.3)
XYZxyz(4.7724, 2.9468, 18.7259)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22237A #7A7922
analogous
#224F7A #22237A #4D227A
triadic
#22237A #7A2223 #237A22
tetradic
#22237A #7A224F #7A7922 #227A4D
square
#22237A #7A224F #7A7922 #227A4D
split-complementary
#22237A #7A4D22 #4F7A22
monochromatic
#07081A #15154A #22237A #2F31AA #4A4BCD

Accessibility & contrast

On white

13.21
#22237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22237A
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22237A#FFFFFF#000000##FFFFFF
##22237A1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22237a;
/* rgb */ color: rgb(34, 35, 122);
/* oklch */ color: oklch(32.1% 0.143 274.3);
Tailwind
colors: {
  custom: {
    50: '#6b5ea1',
    500: '#22237a',
    950: '#000000',
  },
}
SCSS
$custom: #22237a;
$custom-light: #6b5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#22237a",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 239.318,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.14329,
    "h": 274.3
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#22237A
secondary
#ADAC4B
accent
#DE48E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22237A

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

Preview Lab → · Contrast checker → · Palette generator →

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