#212382#212382

#212382 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.154 H 273.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#212382
RGBrgb(33, 35, 130)
HSLhsl(239, 60%, 32%)
HSVhsv(239, 75%, 51%)
CMYKcmyk(74.6%, 73.1%, 0%, 49%)
CIE-LABlab(20.58, 32.81, -53.29)
CIE-LCHlch(20.58, 62.58, 301.62°)
OKLaboklab(32.91% 0.0083 -0.1541)
OKLCHoklch(32.91% 0.154 273.1)
XYZxyz(5.2561, 3.1366, 21.4432)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212382 #828021
analogous
#215482 #212382 #502182
triadic
#212382 #822123 #238221
tetradic
#212382 #822154 #828021 #218250
square
#212382 #822154 #828021 #218250
split-complementary
#212382 #825021 #548221
monochromatic
#080920 #151651 #212382 #2D30B3 #4C4FD2

Accessibility & contrast

On white

12.90
#212382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212382
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212382#FFFFFF#000000##FFFFFF
##2123821.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212382;
/* rgb */ color: rgb(33, 35, 130);
/* oklch */ color: oklch(32.9% 0.154 273.1);
Tailwind
colors: {
  custom: {
    50: '#6c5fa7',
    500: '#212382',
    950: '#000000',
  },
}
SCSS
$custom: #212382;
$custom-light: #6c5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#212382",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 130
  },
  "hsl": {
    "h": 238.763,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.15435,
    "h": 273.1
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

primary
#212382
secondary
#B4B24A
accent
#DF45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212382

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

Preview Lab → · Contrast checker → · Palette generator →

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