#213166#213166

#213166 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.1% C 0.095 H 268.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#213166
RGBrgb(33, 49, 102)
HSLhsl(226, 51%, 26%)
HSVhsv(226, 68%, 40%)
CMYKcmyk(67.6%, 52%, 0%, 60%)
CIE-LABlab(21.87, 12.46, -33.25)
CIE-LCHlch(21.87, 35.51, 290.54°)
OKLaboklab(33.1% -0.003 -0.0952)
OKLCHoklch(33.1% 0.095 268.2)
XYZxyz(4.1230, 3.4789, 13.0220)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213166 #665621
analogous
#215466 #213166 #342166
triadic
#213166 #662131 #316621
tetradic
#213166 #662154 #665621 #216634
square
#213166 #662154 #665621 #216634
split-complementary
#213166 #663421 #546621
monochromatic
#070B17 #121B38 #213166 #304794 #405EC1

Accessibility & contrast

On white

12.38
#213166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#213166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213166
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213166#FFFFFF#000000##FFFFFF
##2131661.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153868
Deuteranopia (green-blind)
#063165
Tritanopia (blue-blind)
#003D46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #213166;
/* rgb */ color: rgb(33, 49, 102);
/* oklch */ color: oklch(33.1% 0.095 268.2);
Tailwind
colors: {
  custom: {
    50: '#646892',
    500: '#213166',
    950: '#000000',
  },
}
SCSS
$custom: #213166;
$custom-light: #646892;
$custom-dark: #000000;
JSON
{
  "hex": "#213166",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 226.087,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33098,
    "c": 0.09525,
    "h": 268.2
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#213166
secondary
#9A8749
accent
#BA4DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #213166

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

Preview Lab → · Contrast checker → · Palette generator →

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