#212271#212271

#212271 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.132 H 274.9°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#212271
RGBrgb(33, 34, 113)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 44%)
CMYKcmyk(70.8%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.62, 27.23, -45.65)
CIE-LCHlch(18.62, 53.16, 300.82°)
OKLaboklab(30.98% 0.0113 -0.1318)
OKLCHoklch(30.98% 0.132 274.9)
XYZxyz(4.1789, 2.6593, 15.9126)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212271 #717021
analogous
#214A71 #212271 #482171
triadic
#212271 #712122 #227121
tetradic
#212271 #71214A #717021 #217148
square
#212271 #71214A #717021 #217148
split-complementary
#212271 #714821 #4A7121
monochromatic
#070718 #131442 #212271 #2F30A0 #4446C8

Accessibility & contrast

On white

13.71
#212271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#212271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212271
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212271#FFFFFF#000000##FFFFFF
##2122711.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212271;
/* rgb */ color: rgb(33, 34, 113);
/* oklch */ color: oklch(31.0% 0.132 274.9);
Tailwind
colors: {
  custom: {
    50: '#685d9b',
    500: '#212271',
    950: '#000000',
  },
}
SCSS
$custom: #212271;
$custom-light: #685d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212271",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 239.25,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30975,
    "c": 0.1323,
    "h": 274.9
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#212271
secondary
#A5A349
accent
#DC4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212271

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

Preview Lab → · Contrast checker → · Palette generator →

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