#221886#221886

#221886 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.170 H 274.8°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#221886
RGBrgb(34, 24, 134)
HSLhsl(245, 70%, 31%)
HSVhsv(245, 82%, 53%)
CMYKcmyk(74.6%, 82.1%, 0%, 47.5%)
CIE-LABlab(18.86, 40.62, -58.65)
CIE-LCHlch(18.86, 71.34, 304.70°)
OKLaboklab(31.84% 0.0142 -0.1696)
OKLCHoklch(31.84% 0.17 274.8)
XYZxyz(5.2880, 2.7141, 22.7948)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221886 #7C8618
analogous
#184586 #221886 #591886
triadic
#221886 #862218 #188622
tetradic
#221886 #861845 #7C8618 #188659
square
#221886 #861845 #7C8618 #188659
split-complementary
#221886 #865918 #458618
monochromatic
#08051E #150F52 #221886 #2F21BA #4B3CDC

Accessibility & contrast

On white

13.61
#221886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#221886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221886
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221886#FFFFFF#000000##FFFFFF
##2218861.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #221886;
/* rgb */ color: rgb(34, 24, 134);
/* oklch */ color: oklch(31.8% 0.170 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f58aa',
    500: '#221886',
    950: '#000000',
  },
}
SCSS
$custom: #221886;
$custom-light: #6f58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#221886",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 245.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31843,
    "c": 0.17021,
    "h": 274.8
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#221886
secondary
#AFBA40
accent
#EC3BDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221886

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

Preview Lab → · Contrast checker → · Palette generator →

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