#212178#212178

#212178 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.143 H 274.4°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#212178
RGBrgb(33, 33, 120)
HSLhsl(240, 57%, 30%)
HSVhsv(240, 73%, 47%)
CMYKcmyk(72.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.08, 30.46, -49.40)
CIE-LCHlch(19.08, 58.03, 301.66°)
OKLaboklab(31.52% 0.0111 -0.1428)
OKLCHoklch(31.52% 0.143 274.4)
XYZxyz(4.5601, 2.7667, 18.0594)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212178 #787821
analogous
#214C78 #212178 #4C2178
triadic
#212178 #782121 #217821
tetradic
#212178 #78214D #787821 #21784D
square
#212178 #78214D #787821 #21784D
split-complementary
#212178 #784D21 #4D7821
monochromatic
#070718 #141448 #212178 #2E2EA8 #4747CC

Accessibility & contrast

On white

13.52
#212178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212178
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212178#FFFFFF#000000##FFFFFF
##2121781.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212178;
/* rgb */ color: rgb(33, 33, 120);
/* oklch */ color: oklch(31.5% 0.143 274.4);
Tailwind
colors: {
  custom: {
    50: '#6a5da0',
    500: '#212178',
    950: '#000000',
  },
}
SCSS
$custom: #212178;
$custom-light: #6a5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#212178",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.31521,
    "c": 0.1432,
    "h": 274.4
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#212178
secondary
#ABAB4A
accent
#E048E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212178

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

Preview Lab → · Contrast checker → · Palette generator →

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