#212078#212078

#212078 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.144 H 274.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#212078
RGBrgb(33, 32, 120)
HSLhsl(241, 58%, 30%)
HSVhsv(241, 73%, 47%)
CMYKcmyk(72.5%, 73.3%, 0%, 52.9%)
CIE-LABlab(18.85, 31.10, -49.78)
CIE-LCHlch(18.85, 58.69, 301.99°)
OKLaboklab(31.35% 0.0118 -0.1439)
OKLCHoklch(31.35% 0.144 274.7)
XYZxyz(4.5328, 2.7120, 18.0502)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212078 #777820
analogous
#204B78 #212078 #4D2078
triadic
#212078 #782120 #207821
tetradic
#212078 #78204B #777820 #20784D
square
#212078 #78204B #777820 #20784D
split-complementary
#212078 #784D20 #4B7820
monochromatic
#070618 #141348 #212078 #2E2DA8 #4745CD

Accessibility & contrast

On white

13.62
#212078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212078
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212078#FFFFFF#000000##FFFFFF
##2120781.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212078;
/* rgb */ color: rgb(33, 32, 120);
/* oklch */ color: oklch(31.4% 0.144 274.7);
Tailwind
colors: {
  custom: {
    50: '#6a5ca0',
    500: '#212078',
    950: '#000000',
  },
}
SCSS
$custom: #212078;
$custom-light: #6a5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#212078",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 240.682,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31354,
    "c": 0.14436,
    "h": 274.7
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#212078
secondary
#AAAB48
accent
#E147DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212078

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

Preview Lab → · Contrast checker → · Palette generator →

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