#212378#212378

#212378 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.141 H 274.0°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#212378
RGBrgb(33, 35, 120)
HSLhsl(239, 57%, 30%)
HSVhsv(239, 73%, 47%)
CMYKcmyk(72.5%, 70.8%, 0%, 52.9%)
CIE-LABlab(19.56, 29.16, -48.61)
CIE-LCHlch(19.56, 56.69, 300.96°)
OKLaboklab(31.87% 0.0097 -0.1405)
OKLCHoklch(31.87% 0.141 274)
XYZxyz(4.6173, 2.8810, 18.0784)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212378 #787621
analogous
#214E78 #212378 #4B2178
triadic
#212378 #782123 #237821
tetradic
#212378 #78214E #787621 #21784B
square
#212378 #78214E #787621 #21784B
split-complementary
#212378 #784B21 #4E7821
monochromatic
#070718 #141548 #212378 #2E31A8 #474ACC

Accessibility & contrast

On white

13.32
#212378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#212378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212378
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212378#FFFFFF#000000##FFFFFF
##2123781.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212378;
/* rgb */ color: rgb(33, 35, 120);
/* oklch */ color: oklch(31.9% 0.141 274.0);
Tailwind
colors: {
  custom: {
    50: '#6a5ea0',
    500: '#212378',
    950: '#000000',
  },
}
SCSS
$custom: #212378;
$custom-light: #6a5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#212378",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 238.621,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.31865,
    "c": 0.14082,
    "h": 274
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#212378
secondary
#ABA94A
accent
#DD48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212378

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

Preview Lab → · Contrast checker → · Palette generator →

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