#22187E#22187E

#22187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.160 H 275.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#22187E
RGBrgb(34, 24, 126)
HSLhsl(246, 68%, 29%)
HSVhsv(246, 81%, 49%)
CMYKcmyk(73%, 81%, 0%, 50.6%)
CIE-LABlab(17.92, 38.00, -55.15)
CIE-LCHlch(17.92, 66.97, 304.57°)
OKLaboklab(30.91% 0.0164 -0.1594)
OKLCHoklch(30.91% 0.16 275.9)
XYZxyz(4.7510, 2.4993, 19.9666)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22187E #747E18
analogous
#18417E #22187E #55187E
triadic
#22187E #7E2218 #187E22
tetradic
#22187E #7E1841 #747E18 #187E55
square
#22187E #7E1841 #747E18 #187E55
split-complementary
#22187E #7E5518 #417E18
monochromatic
#07051A #140E4B #22187E #3022B1 #4737D9

Accessibility & contrast

On white

14.00
#22187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#22187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22187E
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22187E#FFFFFF#000000##FFFFFF
##22187E1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22187e;
/* rgb */ color: rgb(34, 24, 126);
/* oklch */ color: oklch(30.9% 0.160 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#22187e',
    950: '#000000',
  },
}
SCSS
$custom: #22187e;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22187e",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 245.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30908,
    "c": 0.16028,
    "h": 275.9
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#22187E
secondary
#A7B23F
accent
#EB3DDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22187E

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

Preview Lab → · Contrast checker → · Palette generator →

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