#212479#212479

#212479 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.141 H 273.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#212479
RGBrgb(33, 36, 121)
HSLhsl(238, 57%, 30%)
HSVhsv(238, 73%, 47%)
CMYKcmyk(72.7%, 70.2%, 0%, 52.5%)
CIE-LABlab(19.90, 28.87, -48.69)
CIE-LCHlch(19.90, 56.61, 300.67°)
OKLaboklab(32.14% 0.0089 -0.1407)
OKLCHoklch(32.14% 0.141 273.6)
XYZxyz(4.7081, 2.9651, 18.4097)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212479 #797621
analogous
#215079 #212479 #4A2179
triadic
#212479 #792124 #247921
tetradic
#212479 #792150 #797621 #21794A
square
#212479 #792150 #797621 #21794A
split-complementary
#212479 #794A21 #507921
monochromatic
#070719 #141649 #212479 #2E32A9 #474CCD

Accessibility & contrast

On white

13.18
#212479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212479
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212479#FFFFFF#000000##FFFFFF
##2124791.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212479;
/* rgb */ color: rgb(33, 36, 121);
/* oklch */ color: oklch(32.1% 0.141 273.6);
Tailwind
colors: {
  custom: {
    50: '#6a5fa1',
    500: '#212479',
    950: '#000000',
  },
}
SCSS
$custom: #212479;
$custom-light: #6a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#212479",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 237.955,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32143,
    "c": 0.14098,
    "h": 273.6
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#212479
secondary
#ACA94A
accent
#DB47E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #212479

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

Preview Lab → · Contrast checker → · Palette generator →

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