#221971#221971

#221971 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.143 H 277.7°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#221971
RGBrgb(34, 25, 113)
HSLhsl(246, 64%, 27%)
HSVhsv(246, 78%, 44%)
CMYKcmyk(69.9%, 77.9%, 0%, 55.7%)
CIE-LABlab(16.64, 33.05, -48.91)
CIE-LCHlch(16.64, 59.03, 304.05°)
OKLaboklab(29.57% 0.0191 -0.1413)
OKLCHoklch(29.57% 0.143 277.7)
XYZxyz(3.9870, 2.2273, 15.8394)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221971 #687119
analogous
#193C71 #221971 #4E1971
triadic
#221971 #712219 #197122
tetradic
#221971 #71193C #687119 #19714E
square
#221971 #71193C #687119 #19714E
split-complementary
#221971 #714E19 #3C7119
monochromatic
#080619 #130E3F #221971 #3124A3 #4333D2

Accessibility & contrast

On white

14.53
#221971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#221971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221971
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221971#FFFFFF#000000##FFFFFF
##2219711.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221971;
/* rgb */ color: rgb(34, 25, 113);
/* oklch */ color: oklch(29.6% 0.143 277.7);
Tailwind
colors: {
  custom: {
    50: '#6a579b',
    500: '#221971',
    950: '#000000',
  },
}
SCSS
$custom: #221971;
$custom-light: #6a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#221971",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 246.136,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29572,
    "c": 0.14258,
    "h": 277.7
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#221971
secondary
#9CA640
accent
#E741D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221971

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

Preview Lab → · Contrast checker → · Palette generator →

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