#212166#212166

#212166 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.7% C 0.118 H 276.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#212166
RGBrgb(33, 33, 102)
HSLhsl(240, 51%, 26%)
HSVhsv(240, 68%, 40%)
CMYKcmyk(67.6%, 67.6%, 0%, 60%)
CIE-LABlab(17.32, 23.80, -40.62)
CIE-LCHlch(17.32, 47.08, 300.37°)
OKLaboklab(29.7% 0.0133 -0.1171)
OKLCHoklch(29.7% 0.118 276.5)
XYZxyz(3.5685, 2.3701, 12.8372)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212166 #666621
analogous
#214466 #212166 #442166
triadic
#212166 #662121 #216621
tetradic
#212166 #662144 #666621 #216644
square
#212166 #662144 #666621 #216644
split-complementary
#212166 #664421 #446621
monochromatic
#070717 #121238 #212166 #303094 #4040C1

Accessibility & contrast

On white

14.25
#212166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#212166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212166
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212166#FFFFFF#000000##FFFFFF
##2121661.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212166;
/* rgb */ color: rgb(33, 33, 102);
/* oklch */ color: oklch(29.7% 0.118 276.5);
Tailwind
colors: {
  custom: {
    50: '#665c92',
    500: '#212166',
    950: '#000000',
  },
}
SCSS
$custom: #212166;
$custom-light: #665c92;
$custom-dark: #000000;
JSON
{
  "hex": "#212166",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 240,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29703,
    "c": 0.11782,
    "h": 276.5
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#212166
secondary
#9A9A49
accent
#DB4DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212166

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

Preview Lab → · Contrast checker → · Palette generator →

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