#212079#212079

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

Color values

HEX#212079
RGBrgb(33, 32, 121)
HSLhsl(241, 58%, 30%)
HSVhsv(241, 74%, 47%)
CMYKcmyk(72.7%, 73.6%, 0%, 52.5%)
CIE-LABlab(18.96, 31.46, -50.25)
CIE-LCHlch(18.96, 59.28, 302.05°)
OKLaboklab(31.46% 0.0116 -0.1452)
OKLCHoklch(31.46% 0.146 274.6)
XYZxyz(4.5938, 2.7364, 18.3715)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212079 #787920
analogous
#204C79 #212079 #4D2079
triadic
#212079 #792120 #207921
tetradic
#212079 #79204C #787920 #20794D
square
#212079 #79204C #787920 #20794D
split-complementary
#212079 #794D20 #4C7920
monochromatic
#070618 #141349 #212079 #2E2DA9 #4745CE

Accessibility & contrast

On white

13.57
#212079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212079
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212079#FFFFFF#000000##FFFFFF
##2120791.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212079;
/* rgb */ color: rgb(33, 32, 121);
/* oklch */ color: oklch(31.5% 0.146 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b5ca1',
    500: '#212079',
    950: '#000000',
  },
}
SCSS
$custom: #212079;
$custom-light: #6b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#212079",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 240.674,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.3146,
    "c": 0.14571,
    "h": 274.6
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#212079
secondary
#ABAC49
accent
#E146E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #212079

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

Preview Lab → · Contrast checker → · Palette generator →

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