#221785#221785

#221785 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.170 H 275.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#221785
RGBrgb(34, 23, 133)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 52%)
CMYKcmyk(74.4%, 82.7%, 0%, 47.8%)
CIE-LABlab(18.57, 40.80, -58.51)
CIE-LCHlch(18.57, 71.33, 304.89°)
OKLaboklab(31.6% 0.0149 -0.1692)
OKLCHoklch(31.6% 0.17 275)
XYZxyz(5.1983, 2.6458, 22.4225)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221785 #7A8517
analogous
#174385 #221785 #591785
triadic
#221785 #852217 #178522
tetradic
#221785 #851743 #7A8517 #178559
square
#221785 #851743 #7A8517 #178559
split-complementary
#221785 #855917 #438517
monochromatic
#07051D #150E51 #221785 #2F20B9 #4A3ADD

Accessibility & contrast

On white

13.73
#221785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#221785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221785
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221785#FFFFFF#000000##FFFFFF
##2217851.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002883
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221785;
/* rgb */ color: rgb(34, 23, 133);
/* oklch */ color: oklch(31.6% 0.170 275.0);
Tailwind
colors: {
  custom: {
    50: '#6f57aa',
    500: '#221785',
    950: '#000000',
  },
}
SCSS
$custom: #221785;
$custom-light: #6f57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#221785",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 246,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31604,
    "c": 0.16984,
    "h": 275
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#221785
secondary
#ADB93F
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221785

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

Preview Lab → · Contrast checker → · Palette generator →

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