#22238B#22238B

#22238B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.166 H 272.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#22238B
RGBrgb(34, 35, 139)
HSLhsl(239, 61%, 34%)
HSVhsv(239, 76%, 55%)
CMYKcmyk(75.5%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.60, 36.12, -57.26)
CIE-LCHlch(21.60, 67.70, 302.25°)
OKLaboklab(33.94% 0.0081 -0.1657)
OKLCHoklch(33.94% 0.166 272.8)
XYZxyz(5.9194, 3.4056, 24.7665)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22238B #8B8A22
analogous
#22588B #22238B #56228B
triadic
#22238B #8B2223 #238B22
tetradic
#22238B #8B2258 #8B8A22 #228B56
square
#22238B #8B2258 #8B8A22 #228B56
split-complementary
#22238B #8B5622 #588B22
monochromatic
#0A0A29 #16175A #22238B #2E2FBC #5354D5

Accessibility & contrast

On white

12.49
#22238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22238B
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22238B#FFFFFF#000000##FFFFFF
##22238B1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22238b;
/* rgb */ color: rgb(34, 35, 139);
/* oklch */ color: oklch(33.9% 0.166 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f5fae',
    500: '#22238b',
    950: '#000000',
  },
}
SCSS
$custom: #22238b;
$custom-light: #6f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#22238b",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 239.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33941,
    "c": 0.16588,
    "h": 272.8
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#22238B
secondary
#B8B750
accent
#E244E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #22238B

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

Preview Lab → · Contrast checker → · Palette generator →

#22238B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva