#221381#221381

#221381 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.168 H 276.0°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#221381
RGBrgb(34, 19, 129)
HSLhsl(248, 74%, 29%)
HSVhsv(248, 85%, 51%)
CMYKcmyk(73.6%, 85.3%, 0%, 49.4%)
CIE-LABlab(17.42, 41.47, -57.89)
CIE-LCHlch(17.42, 71.21, 305.62°)
OKLaboklab(30.67% 0.0177 -0.1673)
OKLCHoklch(30.67% 0.168 276)
XYZxyz(4.8537, 2.3903, 20.9702)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221381 #728113
analogous
#133B81 #221381 #591381
triadic
#221381 #812213 #138122
tetradic
#221381 #81133B #728113 #138159
square
#221381 #81133B #728113 #138159
split-complementary
#221381 #815913 #3B8113
monochromatic
#07041B #140B4C #221381 #301BB6 #462EE0

Accessibility & contrast

On white

14.21
#221381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#221381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221381
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221381#FFFFFF#000000##FFFFFF
##2213811.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #221381;
/* rgb */ color: rgb(34, 19, 129);
/* oklch */ color: oklch(30.7% 0.168 276.0);
Tailwind
colors: {
  custom: {
    50: '#6e55a7',
    500: '#221381',
    950: '#000000',
  },
}
SCSS
$custom: #221381;
$custom-light: #6e55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#221381",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 248.182,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30666,
    "c": 0.16823,
    "h": 276
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#221381
secondary
#A5B63A
accent
#F137D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221381

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

Preview Lab → · Contrast checker → · Palette generator →

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