#212782#212782

#212782 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.150 H 272.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#212782
RGBrgb(33, 39, 130)
HSLhsl(236, 60%, 32%)
HSVhsv(236, 75%, 51%)
CMYKcmyk(74.6%, 70%, 0%, 49%)
CIE-LABlab(21.53, 30.24, -51.74)
CIE-LCHlch(21.53, 59.92, 300.30°)
OKLaboklab(33.59% 0.0058 -0.1496)
OKLCHoklch(33.59% 0.15 272.2)
XYZxyz(5.3806, 3.3855, 21.4847)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212782 #827C21
analogous
#215882 #212782 #4C2182
triadic
#212782 #822127 #278221
tetradic
#212782 #822158 #827C21 #21824C
square
#212782 #822158 #827C21 #21824C
split-complementary
#212782 #824C21 #588221
monochromatic
#080A20 #151851 #212782 #2D36B3 #4C54D2

Accessibility & contrast

On white

12.52
#212782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212782
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212782#FFFFFF#000000##FFFFFF
##2127821.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212782;
/* rgb */ color: rgb(33, 39, 130);
/* oklch */ color: oklch(33.6% 0.150 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c61a7',
    500: '#212782',
    950: '#000000',
  },
}
SCSS
$custom: #212782;
$custom-light: #6c61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212782",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 236.289,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33591,
    "c": 0.14971,
    "h": 272.2
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#212782
secondary
#B4AE4A
accent
#D945E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212782

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

Preview Lab → · Contrast checker → · Palette generator →

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