#221862#221862

#221862 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.124 H 280.8°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#221862
RGBrgb(34, 24, 98)
HSLhsl(248, 61%, 24%)
HSVhsv(248, 76%, 38%)
CMYKcmyk(65.3%, 75.5%, 0%, 61.6%)
CIE-LABlab(14.82, 28.45, -42.08)
CIE-LCHlch(14.82, 50.79, 304.07°)
OKLaboklab(27.8% 0.0232 -0.1213)
OKLCHoklch(27.8% 0.124 280.8)
XYZxyz(3.1902, 1.8750, 11.7467)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221862 #586218
analogous
#183362 #221862 #471862
triadic
#221862 #622218 #186222
tetradic
#221862 #621833 #586218 #186247
square
#221862 #621833 #586218 #186247
split-complementary
#221862 #624718 #336218
monochromatic
#090619 #110C31 #221862 #332493 #4430C4

Accessibility & contrast

On white

15.27
#221862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#221862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221862
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221862#FFFFFF#000000##FFFFFF
##2218621.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#002C3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #221862;
/* rgb */ color: rgb(34, 24, 98);
/* oklch */ color: oklch(27.8% 0.124 280.8);
Tailwind
colors: {
  custom: {
    50: '#66568f',
    500: '#221862',
    950: '#000000',
  },
}
SCSS
$custom: #221862;
$custom-light: #66568f;
$custom-dark: #000000;
JSON
{
  "hex": "#221862",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 248.108,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27795,
    "c": 0.12353,
    "h": 280.8
  },
  "luminance": 0.01875
}

Semantic roles & 50–950 ramp

primary
#221862
secondary
#8C983E
accent
#E444CE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #221862

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

Preview Lab → · Contrast checker → · Palette generator →

#221862 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva