#21166F#21166F

#21166F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.143 H 278.0°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#21166F
RGBrgb(33, 22, 111)
HSLhsl(247, 67%, 26%)
HSVhsv(247, 80%, 44%)
CMYKcmyk(70.3%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.72, 33.98, -49.13)
CIE-LCHlch(15.72, 59.74, 304.67°)
OKLaboklab(28.84% 0.02 -0.1419)
OKLCHoklch(28.84% 0.143 278)
XYZxyz(3.7824, 2.0445, 15.2311)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21166F #646F16
analogous
#16376F #21166F #4D166F
triadic
#21166F #6F2116 #166F21
tetradic
#21166F #6F1637 #646F16 #166F4D
square
#21166F #6F1637 #646F16 #166F4D
split-complementary
#21166F #6F4D16 #376F16
monochromatic
#08051A #120C3C #21166F #3020A2 #402BD5

Accessibility & contrast

On white

14.90
#21166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#21166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21166F
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21166F#FFFFFF#000000##FFFFFF
##21166F1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21166f;
/* rgb */ color: rgb(33, 22, 111);
/* oklch */ color: oklch(28.8% 0.143 278.0);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#21166f',
    950: '#000000',
  },
}
SCSS
$custom: #21166f;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#21166f",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 247.416,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28837,
    "c": 0.14333,
    "h": 278
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#21166F
secondary
#98A53C
accent
#EA3ED5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21166F

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

Preview Lab → · Contrast checker → · Palette generator →

#21166F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva