#212678#212678

#212678 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.137 H 273.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#212678
RGBrgb(33, 38, 120)
HSLhsl(237, 57%, 30%)
HSVhsv(237, 73%, 47%)
CMYKcmyk(72.5%, 68.3%, 0%, 52.9%)
CIE-LABlab(20.30, 27.16, -47.40)
CIE-LCHlch(20.30, 54.63, 299.82°)
OKLaboklab(32.4% 0.0076 -0.1369)
OKLCHoklch(32.4% 0.137 273.2)
XYZxyz(4.7093, 3.0652, 18.1091)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212678 #787321
analogous
#215178 #212678 #482178
triadic
#212678 #782126 #267821
tetradic
#212678 #782151 #787321 #217848
square
#212678 #782151 #787321 #217848
split-complementary
#212678 #784821 #517821
monochromatic
#070818 #141748 #212678 #2E35A8 #474FCC

Accessibility & contrast

On white

13.02
#212678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212678
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212678#FFFFFF#000000##FFFFFF
##2126781.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212678;
/* rgb */ color: rgb(33, 38, 120);
/* oklch */ color: oklch(32.4% 0.137 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a60a0',
    500: '#212678',
    950: '#000000',
  },
}
SCSS
$custom: #212678;
$custom-light: #6a60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212678",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 120
  },
  "hsl": {
    "h": 236.552,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32404,
    "c": 0.13711,
    "h": 273.2
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#212678
secondary
#ABA64A
accent
#D748E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #212678

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

Preview Lab → · Contrast checker → · Palette generator →

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