#212379#212379

#212379 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.142 H 273.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#212379
RGBrgb(33, 35, 121)
HSLhsl(239, 57%, 30%)
HSVhsv(239, 73%, 47%)
CMYKcmyk(72.7%, 71.1%, 0%, 52.5%)
CIE-LABlab(19.66, 29.53, -49.09)
CIE-LCHlch(19.66, 57.28, 301.03°)
OKLaboklab(31.97% 0.0096 -0.1419)
OKLCHoklch(31.97% 0.142 273.9)
XYZxyz(4.6783, 2.9054, 18.3997)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212379 #797721
analogous
#214F79 #212379 #4B2179
triadic
#212379 #792123 #237921
tetradic
#212379 #79214F #797721 #21794B
square
#212379 #79214F #797721 #21794B
split-complementary
#212379 #794B21 #4F7921
monochromatic
#070719 #141549 #212379 #2E31A9 #474ACD

Accessibility & contrast

On white

13.28
#212379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212379
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212379#FFFFFF#000000##FFFFFF
##2123791.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212379;
/* rgb */ color: rgb(33, 35, 121);
/* oklch */ color: oklch(32.0% 0.142 273.9);
Tailwind
colors: {
  custom: {
    50: '#6a5ea1',
    500: '#212379',
    950: '#000000',
  },
}
SCSS
$custom: #212379;
$custom-light: #6a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#212379",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 238.636,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31968,
    "c": 0.14218,
    "h": 273.9
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#212379
secondary
#ACAA4A
accent
#DD47E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #212379

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

Preview Lab → · Contrast checker → · Palette generator →

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