#213178#213178

#213178 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.123 H 269.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#213178
RGBrgb(33, 49, 120)
HSLhsl(229, 57%, 30%)
HSVhsv(229, 73%, 47%)
CMYKcmyk(72.5%, 59.2%, 0%, 52.9%)
CIE-LABlab(23.26, 19.56, -42.58)
CIE-LCHlch(23.26, 46.86, 294.68°)
OKLaboklab(34.59% -0.0014 -0.1226)
OKLCHoklch(34.59% 0.123 269.3)
XYZxyz(5.1145, 3.8755, 18.2442)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213178 #786821
analogous
#215C78 #213178 #3D2178
triadic
#213178 #782131 #317821
tetradic
#213178 #78215C #786821 #21783D
square
#213178 #78215C #786821 #21783D
split-complementary
#213178 #783D21 #5C7821
monochromatic
#070A18 #141D48 #213178 #2E45A8 #4760CC

Accessibility & contrast

On white

11.83
#213178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#213178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213178
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213178#FFFFFF#000000##FFFFFF
##2131781.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #213178;
/* rgb */ color: rgb(33, 49, 120);
/* oklch */ color: oklch(34.6% 0.123 269.3);
Tailwind
colors: {
  custom: {
    50: '#6968a0',
    500: '#213178',
    950: '#000000',
  },
}
SCSS
$custom: #213178;
$custom-light: #6968a0;
$custom-dark: #000000;
JSON
{
  "hex": "#213178",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 228.966,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.34585,
    "c": 0.12266,
    "h": 269.3
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#213178
secondary
#AB994A
accent
#C448E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #213178

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

Preview Lab → · Contrast checker → · Palette generator →

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