#212179#212179

#212179 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.145 H 274.3°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#212179
RGBrgb(33, 33, 121)
HSLhsl(240, 57%, 30%)
HSVhsv(240, 73%, 47%)
CMYKcmyk(72.7%, 72.7%, 0%, 52.5%)
CIE-LABlab(19.19, 30.82, -49.87)
CIE-LCHlch(19.19, 58.62, 301.72°)
OKLaboklab(31.63% 0.011 -0.1441)
OKLCHoklch(31.63% 0.145 274.3)
XYZxyz(4.6211, 2.7911, 18.3807)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212179 #797921
analogous
#214D79 #212179 #4D2179
triadic
#212179 #792121 #217921
tetradic
#212179 #79214D #797921 #21794D
square
#212179 #79214D #797921 #21794D
split-complementary
#212179 #794D21 #4D7921
monochromatic
#070719 #141449 #212179 #2E2EA9 #4747CD

Accessibility & contrast

On white

13.48
#212179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#212179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212179
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212179#FFFFFF#000000##FFFFFF
##2121791.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212179;
/* rgb */ color: rgb(33, 33, 121);
/* oklch */ color: oklch(31.6% 0.145 274.3);
Tailwind
colors: {
  custom: {
    50: '#6a5da1',
    500: '#212179',
    950: '#000000',
  },
}
SCSS
$custom: #212179;
$custom-light: #6a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#212179",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31626,
    "c": 0.14456,
    "h": 274.3
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#212179
secondary
#ACAC4A
accent
#E047E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #212179

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

Preview Lab → · Contrast checker → · Palette generator →

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