#212177#212177

#212177 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.142 H 274.6°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#212177
RGBrgb(33, 33, 119)
HSLhsl(240, 57%, 30%)
HSVhsv(240, 72%, 47%)
CMYKcmyk(72.3%, 72.3%, 0%, 53.3%)
CIE-LABlab(18.98, 30.09, -48.92)
CIE-LCHlch(18.98, 57.44, 301.60°)
OKLaboklab(31.42% 0.0113 -0.1414)
OKLCHoklch(31.42% 0.142 274.6)
XYZxyz(4.4997, 2.7425, 17.7414)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212177 #777721
analogous
#214C77 #212177 #4C2177
triadic
#212177 #772121 #217721
tetradic
#212177 #77214C #777721 #21774C
square
#212177 #77214C #777721 #21774C
split-complementary
#212177 #774C21 #4C7721
monochromatic
#070718 #141447 #212177 #2E2EA7 #4747CC

Accessibility & contrast

On white

13.56
#212177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#212177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212177
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212177#FFFFFF#000000##FFFFFF
##2121771.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212177;
/* rgb */ color: rgb(33, 33, 119);
/* oklch */ color: oklch(31.4% 0.142 274.6);
Tailwind
colors: {
  custom: {
    50: '#6a5d9f',
    500: '#212177',
    950: '#000000',
  },
}
SCSS
$custom: #212177;
$custom-light: #6a5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#212177",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31416,
    "c": 0.14184,
    "h": 274.6
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#212177
secondary
#AAAA4A
accent
#E048E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212177

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

Preview Lab → · Contrast checker → · Palette generator →

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