#212879#212879

#212879 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.136 H 272.5°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#212879
RGBrgb(33, 40, 121)
HSLhsl(235, 57%, 30%)
HSVhsv(235, 73%, 47%)
CMYKcmyk(72.7%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.91, 26.19, -47.04)
CIE-LCHlch(20.91, 53.84, 299.11°)
OKLaboklab(32.87% 0.006 -0.1359)
OKLCHoklch(32.87% 0.136 272.5)
XYZxyz(4.8360, 3.2209, 18.4523)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212879 #797221
analogous
#215479 #212879 #462179
triadic
#212879 #792128 #287921
tetradic
#212879 #792154 #797221 #217946
square
#212879 #792154 #797221 #217946
split-complementary
#212879 #794621 #547921
monochromatic
#070819 #141849 #212879 #2E38A9 #4752CD

Accessibility & contrast

On white

12.77
#212879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212879
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212879#FFFFFF#000000##FFFFFF
##2128791.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212879;
/* rgb */ color: rgb(33, 40, 121);
/* oklch */ color: oklch(32.9% 0.136 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a62a1',
    500: '#212879',
    950: '#000000',
  },
}
SCSS
$custom: #212879;
$custom-light: #6a62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212879",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 235.227,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32874,
    "c": 0.13599,
    "h": 272.5
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#212879
secondary
#ACA44A
accent
#D447E0
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212879

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

Preview Lab → · Contrast checker → · Palette generator →

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