#212182#212182

#212182 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.157 H 273.5°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#212182
RGBrgb(33, 33, 130)
HSLhsl(240, 60%, 32%)
HSVhsv(240, 75%, 51%)
CMYKcmyk(74.6%, 74.6%, 0%, 49%)
CIE-LABlab(20.13, 34.06, -54.03)
CIE-LCHlch(20.13, 63.87, 302.23°)
OKLaboklab(32.59% 0.0095 -0.1563)
OKLCHoklch(32.59% 0.157 273.5)
XYZxyz(5.1990, 3.0222, 21.4241)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212182 #828221
analogous
#215282 #212182 #522182
triadic
#212182 #822121 #218221
tetradic
#212182 #822152 #828221 #218252
square
#212182 #822152 #828221 #218252
split-complementary
#212182 #825221 #528221
monochromatic
#080820 #151551 #212182 #2D2DB3 #4C4CD2

Accessibility & contrast

On white

13.09
#212182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#212182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212182
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212182#FFFFFF#000000##FFFFFF
##2121821.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212182;
/* rgb */ color: rgb(33, 33, 130);
/* oklch */ color: oklch(32.6% 0.157 273.5);
Tailwind
colors: {
  custom: {
    50: '#6d5da7',
    500: '#212182',
    950: '#000000',
  },
}
SCSS
$custom: #212182;
$custom-light: #6d5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#212182",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32588,
    "c": 0.15657,
    "h": 273.5
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#212182
secondary
#B4B44A
accent
#E345E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212182

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

Preview Lab → · Contrast checker → · Palette generator →

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