#212579#212579

#212579 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.140 H 273.4°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#212579
RGBrgb(33, 37, 121)
HSLhsl(237, 57%, 30%)
HSVhsv(237, 73%, 47%)
CMYKcmyk(72.7%, 69.4%, 0%, 52.5%)
CIE-LABlab(20.15, 28.21, -48.29)
CIE-LCHlch(20.15, 55.92, 300.29°)
OKLaboklab(32.32% 0.0082 -0.1395)
OKLCHoklch(32.32% 0.14 273.4)
XYZxyz(4.7388, 3.0265, 18.4199)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212579 #797521
analogous
#215179 #212579 #492179
triadic
#212579 #792125 #257921
tetradic
#212579 #792151 #797521 #217949
square
#212579 #792151 #797521 #217949
split-complementary
#212579 #794921 #517921
monochromatic
#070819 #141649 #212579 #2E34A9 #474ECD

Accessibility & contrast

On white

13.08
#212579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212579
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212579#FFFFFF#000000##FFFFFF
##2125791.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212579;
/* rgb */ color: rgb(33, 37, 121);
/* oklch */ color: oklch(32.3% 0.140 273.4);
Tailwind
colors: {
  custom: {
    50: '#6a60a1',
    500: '#212579',
    950: '#000000',
  },
}
SCSS
$custom: #212579;
$custom-light: #6a60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212579",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 237.273,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32322,
    "c": 0.13975,
    "h": 273.4
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#212579
secondary
#ACA84A
accent
#D947E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #212579

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

Preview Lab → · Contrast checker → · Palette generator →

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