#212671#212671

#212671 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.127 H 273.7°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#212671
RGBrgb(33, 38, 113)
HSLhsl(236, 55%, 29%)
HSVhsv(236, 71%, 44%)
CMYKcmyk(70.8%, 66.4%, 0%, 55.7%)
CIE-LABlab(19.64, 24.52, -43.98)
CIE-LCHlch(19.64, 50.35, 299.14°)
OKLaboklab(31.72% 0.0081 -0.1269)
OKLCHoklch(31.72% 0.127 273.7)
XYZxyz(4.3000, 2.9014, 15.9530)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212671 #716C21
analogous
#214E71 #212671 #442171
triadic
#212671 #712126 #267121
tetradic
#212671 #71214E #716C21 #217144
square
#212671 #71214E #716C21 #217144
split-complementary
#212671 #714421 #4E7121
monochromatic
#070818 #131642 #212671 #2F36A0 #444CC8

Accessibility & contrast

On white

13.29
#212671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#212671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212671
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212671#FFFFFF#000000##FFFFFF
##2126711.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212671;
/* rgb */ color: rgb(33, 38, 113);
/* oklch */ color: oklch(31.7% 0.127 273.7);
Tailwind
colors: {
  custom: {
    50: '#68609b',
    500: '#212671',
    950: '#000000',
  },
}
SCSS
$custom: #212671;
$custom-light: #68609b;
$custom-dark: #000000;
JSON
{
  "hex": "#212671",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 236.25,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31719,
    "c": 0.12715,
    "h": 273.7
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#212671
secondary
#A59F49
accent
#D54ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212671

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

Preview Lab → · Contrast checker → · Palette generator →

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