#212082#212082

#212082 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.158 H 273.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#212082
RGBrgb(33, 32, 130)
HSLhsl(241, 60%, 32%)
HSVhsv(241, 75%, 51%)
CMYKcmyk(74.6%, 75.4%, 0%, 49%)
CIE-LABlab(19.91, 34.67, -54.39)
CIE-LCHlch(19.91, 64.50, 302.51°)
OKLaboklab(32.43% 0.01 -0.1573)
OKLCHoklch(32.43% 0.158 273.6)
XYZxyz(5.1716, 2.9675, 21.4150)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212082 #818220
analogous
#205082 #212082 #522082
triadic
#212082 #822120 #208221
tetradic
#212082 #822050 #818220 #208252
square
#212082 #822050 #818220 #208252
split-complementary
#212082 #825220 #508220
monochromatic
#080820 #151451 #212082 #2D2CB3 #4B4AD2

Accessibility & contrast

On white

13.18
#212082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212082
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212082#FFFFFF#000000##FFFFFF
##2120821.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212082;
/* rgb */ color: rgb(33, 32, 130);
/* oklch */ color: oklch(32.4% 0.158 273.6);
Tailwind
colors: {
  custom: {
    50: '#6d5da7',
    500: '#212082',
    950: '#000000',
  },
}
SCSS
$custom: #212082;
$custom-light: #6d5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#212082",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 240.612,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32432,
    "c": 0.15765,
    "h": 273.6
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#212082
secondary
#B4B549
accent
#E444E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212082

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

Preview Lab → · Contrast checker → · Palette generator →

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