#22238C#22238C

#22238C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.167 H 272.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#22238C
RGBrgb(34, 35, 140)
HSLhsl(239, 61%, 34%)
HSVhsv(239, 76%, 55%)
CMYKcmyk(75.7%, 75%, 0%, 45.1%)
CIE-LABlab(21.71, 36.47, -57.70)
CIE-LCHlch(21.71, 68.26, 302.30°)
OKLaboklab(34.05% 0.0079 -0.167)
OKLCHoklch(34.05% 0.167 272.7)
XYZxyz(5.9928, 3.4350, 25.1530)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22238C #8C8B22
analogous
#22588C #22238C #56228C
triadic
#22238C #8C2223 #238C22
tetradic
#22238C #8C2258 #8C8B22 #228C56
square
#22238C #8C2258 #8C8B22 #228C56
split-complementary
#22238C #8C5622 #588C22
monochromatic
#0A0A2A #16175B #22238C #2E2FBD #5354D5

Accessibility & contrast

On white

12.45
#22238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#22238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22238C
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22238C#FFFFFF#000000##FFFFFF
##22238C1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22238c;
/* rgb */ color: rgb(34, 35, 140);
/* oklch */ color: oklch(34.1% 0.167 272.7);
Tailwind
colors: {
  custom: {
    50: '#6f5faf',
    500: '#22238c',
    950: '#000000',
  },
}
SCSS
$custom: #22238c;
$custom-light: #6f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#22238c",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 239.434,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3405,
    "c": 0.16717,
    "h": 272.7
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#22238C
secondary
#B9B851
accent
#E344E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #22238C

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

Preview Lab → · Contrast checker → · Palette generator →

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