#22238E#22238E

#22238E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.170 H 272.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#22238E
RGBrgb(34, 35, 142)
HSLhsl(239, 61%, 35%)
HSVhsv(239, 76%, 56%)
CMYKcmyk(76.1%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.92, 37.17, -58.59)
CIE-LCHlch(21.92, 69.39, 302.39°)
OKLaboklab(34.27% 0.0075 -0.1696)
OKLCHoklch(34.27% 0.17 272.5)
XYZxyz(6.1416, 3.4945, 25.9368)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22238E #8E8D22
analogous
#22598E #22238E #57228E
triadic
#22238E #8E2223 #238E22
tetradic
#22238E #8E2259 #8E8D22 #228E57
square
#22238E #8E2259 #8E8D22 #228E57
split-complementary
#22238E #8E5722 #598E22
monochromatic
#0A0B2B #16175D #22238E #2E2FBF #5455D6

Accessibility & contrast

On white

12.36
#22238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#22238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22238E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22238E#FFFFFF#000000##FFFFFF
##22238E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22238e;
/* rgb */ color: rgb(34, 35, 142);
/* oklch */ color: oklch(34.3% 0.170 272.5);
Tailwind
colors: {
  custom: {
    50: '#705fb0',
    500: '#22238e',
    950: '#000000',
  },
}
SCSS
$custom: #22238e;
$custom-light: #705fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#22238e",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 239.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34268,
    "c": 0.16973,
    "h": 272.5
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#22238E
secondary
#BAB952
accent
#E343E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22238E

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

Preview Lab → · Contrast checker → · Palette generator →

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