#221671#221671

#221671 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.146 H 278.3°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#221671
RGBrgb(34, 22, 113)
HSLhsl(248, 67%, 26%)
HSVhsv(248, 81%, 44%)
CMYKcmyk(69.9%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.03, 34.77, -49.91)
CIE-LCHlch(16.03, 60.83, 304.86°)
OKLaboklab(29.15% 0.021 -0.1442)
OKLCHoklch(29.15% 0.146 278.3)
XYZxyz(3.9263, 2.1058, 15.8191)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221671 #657116
analogous
#163871 #221671 #501671
triadic
#221671 #712216 #167122
tetradic
#221671 #711638 #657116 #167150
square
#221671 #711638 #657116 #167150
split-complementary
#221671 #715016 #387116
monochromatic
#08051A #130C3E #221671 #3120A4 #422CD6

Accessibility & contrast

On white

14.78
#221671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#221671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221671
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221671#FFFFFF#000000##FFFFFF
##2216711.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #221671;
/* rgb */ color: rgb(34, 22, 113);
/* oklch */ color: oklch(29.1% 0.146 278.3);
Tailwind
colors: {
  custom: {
    50: '#6a569b',
    500: '#221671',
    950: '#000000',
  },
}
SCSS
$custom: #221671;
$custom-light: #6a569b;
$custom-dark: #000000;
JSON
{
  "hex": "#221671",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 247.912,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29147,
    "c": 0.14569,
    "h": 278.3
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#221671
secondary
#99A73C
accent
#EA3ED4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221671

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

Preview Lab → · Contrast checker → · Palette generator →

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