#22187B#22187B

#22187B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.157 H 276.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#22187B
RGBrgb(34, 24, 123)
HSLhsl(246, 67%, 29%)
HSVhsv(246, 80%, 48%)
CMYKcmyk(72.4%, 80.5%, 0%, 51.8%)
CIE-LABlab(17.57, 37.00, -53.81)
CIE-LCHlch(17.57, 65.31, 304.51°)
OKLaboklab(30.56% 0.0172 -0.1556)
OKLCHoklch(30.56% 0.157 276.3)
XYZxyz(4.5603, 2.4230, 18.9624)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22187B #717B18
analogous
#18407B #22187B #54187B
triadic
#22187B #7B2218 #187B22
tetradic
#22187B #7B1840 #717B18 #187B54
square
#22187B #7B1840 #717B18 #187B54
split-complementary
#22187B #7B5418 #407B18
monochromatic
#07051A #140E48 #22187B #3022AE #4636D8

Accessibility & contrast

On white

14.15
#22187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22187B
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22187B#FFFFFF#000000##FFFFFF
##22187B1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22187b;
/* rgb */ color: rgb(34, 24, 123);
/* oklch */ color: oklch(30.6% 0.157 276.3);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#22187b',
    950: '#000000',
  },
}
SCSS
$custom: #22187b;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22187b",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 246.061,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30561,
    "c": 0.15651,
    "h": 276.3
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#22187B
secondary
#A4B03F
accent
#EA3ED9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22187B

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

Preview Lab → · Contrast checker → · Palette generator →

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