#213878#213878

#213878 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.113 H 266.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#213878
RGBrgb(33, 56, 120)
HSLhsl(224, 57%, 30%)
HSVhsv(224, 73%, 47%)
CMYKcmyk(72.5%, 53.3%, 0%, 52.9%)
CIE-LABlab(25.28, 14.64, -39.30)
CIE-LCHlch(25.28, 41.93, 290.43°)
OKLaboklab(36.11% -0.0079 -0.1129)
OKLCHoklch(36.11% 0.113 266)
XYZxyz(5.4304, 4.5072, 18.3494)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213878 #786121
analogous
#216478 #213878 #352178
triadic
#213878 #782138 #387821
tetradic
#213878 #782164 #786121 #217835
square
#213878 #782164 #786121 #217835
split-complementary
#213878 #783521 #647821
monochromatic
#070B18 #142248 #213878 #2E4EA8 #476ACC

Accessibility & contrast

On white

11.04
#213878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#213878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213878
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213878#FFFFFF#000000##FFFFFF
##2138781.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11407A
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #213878;
/* rgb */ color: rgb(33, 56, 120);
/* oklch */ color: oklch(36.1% 0.113 266.0);
Tailwind
colors: {
  custom: {
    50: '#686e9f',
    500: '#213878',
    950: '#000000',
  },
}
SCSS
$custom: #213878;
$custom-light: #686e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#213878",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 120
  },
  "hsl": {
    "h": 224.138,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.36113,
    "c": 0.11316,
    "h": 266
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#213878
secondary
#AB914A
accent
#B848E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #213878

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

Preview Lab → · Contrast checker → · Palette generator →

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