#221771#221771

#221771 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.145 H 278.1°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#221771
RGBrgb(34, 23, 113)
HSLhsl(247, 66%, 27%)
HSVhsv(247, 80%, 44%)
CMYKcmyk(69.9%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.23, 34.21, -49.59)
CIE-LCHlch(16.23, 60.24, 304.60°)
OKLaboklab(29.28% 0.0204 -0.1432)
OKLCHoklch(29.28% 0.145 278.1)
XYZxyz(3.9458, 2.1448, 15.8256)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221771 #667117
analogous
#173971 #221771 #4F1771
triadic
#221771 #712217 #177122
tetradic
#221771 #711739 #667117 #17714F
square
#221771 #711739 #667117 #17714F
split-complementary
#221771 #714F17 #397117
monochromatic
#080519 #130D3E #221771 #3121A4 #422ED4

Accessibility & contrast

On white

14.70
#221771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#221771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221771
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221771#FFFFFF#000000##FFFFFF
##2217711.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221771;
/* rgb */ color: rgb(34, 23, 113);
/* oklch */ color: oklch(29.3% 0.145 278.1);
Tailwind
colors: {
  custom: {
    50: '#6a569b',
    500: '#221771',
    950: '#000000',
  },
}
SCSS
$custom: #221771;
$custom-light: #6a569b;
$custom-dark: #000000;
JSON
{
  "hex": "#221771",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 247.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29284,
    "c": 0.14468,
    "h": 278.1
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#221771
secondary
#9AA73D
accent
#E93FD4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221771

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

Preview Lab → · Contrast checker → · Palette generator →

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