#22187A#22187A

#22187A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.155 H 276.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#22187A
RGBrgb(34, 24, 122)
HSLhsl(246, 67%, 29%)
HSVhsv(246, 80%, 48%)
CMYKcmyk(72.1%, 80.3%, 0%, 52.2%)
CIE-LABlab(17.45, 36.67, -53.37)
CIE-LCHlch(17.45, 64.75, 304.49°)
OKLaboklab(30.45% 0.0174 -0.1542)
OKLCHoklch(30.45% 0.155 276.5)
XYZxyz(4.4980, 2.3981, 18.6344)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22187A #707A18
analogous
#183F7A #22187A #53187A
triadic
#22187A #7A2218 #187A22
tetradic
#22187A #7A183F #707A18 #187A53
square
#22187A #7A183F #707A18 #187A53
split-complementary
#22187A #7A5318 #3F7A18
monochromatic
#07051A #140E47 #22187A #3022AD #4635D7

Accessibility & contrast

On white

14.19
#22187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#22187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22187A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22187A#FFFFFF#000000##FFFFFF
##22187A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22187a;
/* rgb */ color: rgb(34, 24, 122);
/* oklch */ color: oklch(30.4% 0.155 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#22187a',
    950: '#000000',
  },
}
SCSS
$custom: #22187a;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22187a",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 246.122,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30446,
    "c": 0.15523,
    "h": 276.5
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#22187A
secondary
#A3AF3F
accent
#EA3ED8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22187A

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

Preview Lab → · Contrast checker → · Palette generator →

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