#212377#212377

#212377 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.139 H 274.1°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#212377
RGBrgb(33, 35, 119)
HSLhsl(239, 57%, 30%)
HSVhsv(239, 72%, 47%)
CMYKcmyk(72.3%, 70.6%, 0%, 53.3%)
CIE-LABlab(19.46, 28.79, -48.14)
CIE-LCHlch(19.46, 56.09, 300.88°)
OKLaboklab(31.76% 0.0099 -0.1391)
OKLCHoklch(31.76% 0.139 274.1)
XYZxyz(4.5569, 2.8569, 17.7605)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212377 #777521
analogous
#214E77 #212377 #4A2177
triadic
#212377 #772123 #237721
tetradic
#212377 #77214E #777521 #21774A
square
#212377 #77214E #777521 #21774A
split-complementary
#212377 #774A21 #4E7721
monochromatic
#070718 #141547 #212377 #2E31A7 #474ACC

Accessibility & contrast

On white

13.36
#212377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#212377 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212377
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212377#FFFFFF#000000##FFFFFF
##2123771.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212377;
/* rgb */ color: rgb(33, 35, 119);
/* oklch */ color: oklch(31.8% 0.139 274.1);
Tailwind
colors: {
  custom: {
    50: '#6a5e9f',
    500: '#212377',
    950: '#000000',
  },
}
SCSS
$custom: #212377;
$custom-light: #6a5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#212377",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 119
  },
  "hsl": {
    "h": 238.605,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.13943,
    "h": 274.1
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#212377
secondary
#AAA84A
accent
#DC48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212377

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

Preview Lab → · Contrast checker → · Palette generator →

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