#22187F#22187F

#22187F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.162 H 275.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#22187F
RGBrgb(34, 24, 127)
HSLhsl(246, 68%, 30%)
HSVhsv(246, 81%, 50%)
CMYKcmyk(73.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(18.03, 38.33, -55.59)
CIE-LCHlch(18.03, 67.53, 304.58°)
OKLaboklab(31.02% 0.0161 -0.1607)
OKLCHoklch(31.02% 0.162 275.7)
XYZxyz(4.8158, 2.5252, 20.3082)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22187F #757F18
analogous
#18427F #22187F #56187F
triadic
#22187F #7F2218 #187F22
tetradic
#22187F #7F1842 #757F18 #187F56
square
#22187F #7F1842 #757F18 #187F56
split-complementary
#22187F #7F5618 #427F18
monochromatic
#07051A #140E4C #22187F #3022B2 #4838D9

Accessibility & contrast

On white

13.95
#22187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#22187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22187F
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22187F#FFFFFF#000000##FFFFFF
##22187F1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22187f;
/* rgb */ color: rgb(34, 24, 127);
/* oklch */ color: oklch(31.0% 0.162 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#22187f',
    950: '#000000',
  },
}
SCSS
$custom: #22187f;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22187f",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 245.825,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31024,
    "c": 0.16154,
    "h": 275.7
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22187F

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

Preview Lab → · Contrast checker → · Palette generator →

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