#22187C#22187C

#22187C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.158 H 276.2°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#22187C
RGBrgb(34, 24, 124)
HSLhsl(246, 68%, 29%)
HSVhsv(246, 81%, 49%)
CMYKcmyk(72.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.68, 37.33, -54.26)
CIE-LCHlch(17.68, 65.86, 304.53°)
OKLaboklab(30.68% 0.0169 -0.1569)
OKLCHoklch(30.68% 0.158 276.2)
XYZxyz(4.6232, 2.4482, 19.2938)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22187C #727C18
analogous
#18407C #22187C #54187C
triadic
#22187C #7C2218 #187C22
tetradic
#22187C #7C1840 #727C18 #187C54
square
#22187C #7C1840 #727C18 #187C54
split-complementary
#22187C #7C5418 #407C18
monochromatic
#07051A #140E49 #22187C #3022AF #4636D8

Accessibility & contrast

On white

14.10
#22187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22187C
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22187C#FFFFFF#000000##FFFFFF
##22187C1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22187c;
/* rgb */ color: rgb(34, 24, 124);
/* oklch */ color: oklch(30.7% 0.158 276.2);
Tailwind
colors: {
  custom: {
    50: '#6c57a3',
    500: '#22187c',
    950: '#000000',
  },
}
SCSS
$custom: #22187c;
$custom-light: #6c57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22187c",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 246,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30676,
    "c": 0.15777,
    "h": 276.2
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#22187C
secondary
#A5B13F
accent
#EA3DD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22187C

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

Preview Lab → · Contrast checker → · Palette generator →

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