#221986#221986

#221986 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.169 H 274.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#221986
RGBrgb(34, 25, 134)
HSLhsl(245, 69%, 31%)
HSVhsv(245, 81%, 53%)
CMYKcmyk(74.6%, 81.3%, 0%, 47.5%)
CIE-LABlab(19.04, 40.10, -58.36)
CIE-LCHlch(19.04, 70.81, 304.50°)
OKLaboklab(31.97% 0.0138 -0.1688)
OKLCHoklch(31.97% 0.169 274.7)
XYZxyz(5.3090, 2.7560, 22.8018)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221986 #7D8619
analogous
#194686 #221986 #581986
triadic
#221986 #862219 #198622
tetradic
#221986 #861946 #7D8619 #198658
square
#221986 #861946 #7D8619 #198658
split-complementary
#221986 #865819 #468619
monochromatic
#08061F #150F52 #221986 #2F23BA #4B3EDB

Accessibility & contrast

On white

13.54
#221986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#221986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221986
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221986#FFFFFF#000000##FFFFFF
##2219861.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221986;
/* rgb */ color: rgb(34, 25, 134);
/* oklch */ color: oklch(32.0% 0.169 274.7);
Tailwind
colors: {
  custom: {
    50: '#6f59aa',
    500: '#221986',
    950: '#000000',
  },
}
SCSS
$custom: #221986;
$custom-light: #6f59aa;
$custom-dark: #000000;
JSON
{
  "hex": "#221986",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 244.954,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31968,
    "c": 0.16934,
    "h": 274.7
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#221986
secondary
#B0BA41
accent
#EB3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221986

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

Preview Lab → · Contrast checker → · Palette generator →

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