#22187D#22187D

#22187D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.159 H 276.0°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#22187D
RGBrgb(34, 24, 125)
HSLhsl(246, 68%, 29%)
HSVhsv(246, 81%, 49%)
CMYKcmyk(72.8%, 80.8%, 0%, 51%)
CIE-LABlab(17.80, 37.67, -54.71)
CIE-LCHlch(17.80, 66.42, 304.55°)
OKLaboklab(30.79% 0.0167 -0.1582)
OKLCHoklch(30.79% 0.159 276)
XYZxyz(4.6868, 2.4736, 19.6285)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22187D #737D18
analogous
#18417D #22187D #55187D
triadic
#22187D #7D2218 #187D22
tetradic
#22187D #7D1841 #737D18 #187D55
square
#22187D #7D1841 #737D18 #187D55
split-complementary
#22187D #7D5518 #417D18
monochromatic
#07051A #140E4A #22187D #3022B0 #4737D9

Accessibility & contrast

On white

14.05
#22187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#22187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22187D
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22187D#FFFFFF#000000##FFFFFF
##22187D1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22187d;
/* rgb */ color: rgb(34, 24, 125);
/* oklch */ color: oklch(30.8% 0.159 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d57a4',
    500: '#22187d',
    950: '#000000',
  },
}
SCSS
$custom: #22187d;
$custom-light: #6d57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22187d",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 245.941,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30792,
    "c": 0.15902,
    "h": 276
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#22187D
secondary
#A6B23F
accent
#EB3DD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22187D

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

Preview Lab → · Contrast checker → · Palette generator →

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