#221681#221681

#221681 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.166 H 275.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#221681
RGBrgb(34, 22, 129)
HSLhsl(247, 71%, 30%)
HSVhsv(247, 83%, 51%)
CMYKcmyk(73.6%, 82.9%, 0%, 49.4%)
CIE-LABlab(17.91, 40.02, -57.06)
CIE-LCHlch(17.91, 69.70, 305.04°)
OKLaboklab(31.01% 0.0165 -0.165)
OKLCHoklch(31.01% 0.166 275.7)
XYZxyz(4.9077, 2.4984, 20.9882)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221681 #758116
analogous
#164081 #221681 #581681
triadic
#221681 #812216 #168122
tetradic
#221681 #811640 #758116 #168158
square
#221681 #811640 #758116 #168158
split-complementary
#221681 #815816 #408116
monochromatic
#07041A #140D4D #221681 #301FB5 #4835DD

Accessibility & contrast

On white

14.00
#221681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#221681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221681
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221681#FFFFFF#000000##FFFFFF
##2216811.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #221681;
/* rgb */ color: rgb(34, 22, 129);
/* oklch */ color: oklch(31.0% 0.166 275.7);
Tailwind
colors: {
  custom: {
    50: '#6e57a7',
    500: '#221681',
    950: '#000000',
  },
}
SCSS
$custom: #221681;
$custom-light: #6e57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#221681",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 246.729,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31009,
    "c": 0.16579,
    "h": 275.7
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#221681
secondary
#A8B63D
accent
#EE3AD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221681

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

Preview Lab → · Contrast checker → · Palette generator →

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