#221790#221790

#221790 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.183 H 273.7°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#221790
RGBrgb(34, 23, 144)
HSLhsl(245, 72%, 33%)
HSVhsv(245, 84%, 56%)
CMYKcmyk(76.4%, 84%, 0%, 43.5%)
CIE-LABlab(19.91, 44.30, -63.18)
CIE-LCHlch(19.91, 77.16, 305.04°)
OKLaboklab(32.92% 0.0119 -0.1827)
OKLCHoklch(32.92% 0.183 273.7)
XYZxyz(5.9985, 2.9659, 26.6365)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221790 #859017
analogous
#174890 #221790 #5F1790
triadic
#221790 #902217 #179022
tetradic
#221790 #901748 #859017 #17905F
square
#221790 #901748 #859017 #17905F
split-complementary
#221790 #905F17 #489017
monochromatic
#090626 #160F5B #221790 #2E1FC5 #4F41E1

Accessibility & contrast

On white

13.18
#221790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#221790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221790
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221790#FFFFFF#000000##FFFFFF
##2217901.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002A8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #221790;
/* rgb */ color: rgb(34, 23, 144);
/* oklch */ color: oklch(32.9% 0.183 273.7);
Tailwind
colors: {
  custom: {
    50: '#7258b2',
    500: '#221790',
    950: '#000000',
  },
}
SCSS
$custom: #221790;
$custom-light: #7258b2;
$custom-dark: #000000;
JSON
{
  "hex": "#221790",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 245.455,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32921,
    "c": 0.18309,
    "h": 273.7
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#221790
secondary
#B6C142
accent
#EF39DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #221790

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

Preview Lab → · Contrast checker → · Palette generator →

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