#221882#221882

#221882 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.165 H 275.3°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#221882
RGBrgb(34, 24, 130)
HSLhsl(246, 69%, 30%)
HSVhsv(246, 82%, 51%)
CMYKcmyk(73.8%, 81.5%, 0%, 49%)
CIE-LABlab(18.39, 39.31, -56.91)
CIE-LCHlch(18.39, 69.17, 304.64°)
OKLaboklab(31.37% 0.0153 -0.1646)
OKLCHoklch(31.37% 0.165 275.3)
XYZxyz(5.0143, 2.6046, 21.3532)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221882 #788218
analogous
#184382 #221882 #571882
triadic
#221882 #822218 #188222
tetradic
#221882 #821843 #788218 #188257
square
#221882 #821843 #788218 #188257
split-complementary
#221882 #825718 #438218
monochromatic
#07051B #140E4E #221882 #3022B6 #493ADB

Accessibility & contrast

On white

13.81
#221882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#221882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221882
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221882#FFFFFF#000000##FFFFFF
##2218821.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221882;
/* rgb */ color: rgb(34, 24, 130);
/* oklch */ color: oklch(31.4% 0.165 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e58a8',
    500: '#221882',
    950: '#000000',
  },
}
SCSS
$custom: #221882;
$custom-light: #6e58a8;
$custom-dark: #000000;
JSON
{
  "hex": "#221882",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 245.66,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31373,
    "c": 0.16527,
    "h": 275.3
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#221882
secondary
#ABB640
accent
#EC3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221882

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

Preview Lab → · Contrast checker → · Palette generator →

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