#212784#212784

#212784 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.152 H 272.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#212784
RGBrgb(33, 39, 132)
HSLhsl(236, 60%, 32%)
HSVhsv(236, 75%, 52%)
CMYKcmyk(75%, 70.5%, 0%, 48.2%)
CIE-LABlab(21.73, 30.97, -52.67)
CIE-LCHlch(21.73, 61.10, 300.46°)
OKLaboklab(33.79% 0.0056 -0.1523)
OKLCHoklch(33.79% 0.152 272.1)
XYZxyz(5.5162, 3.4398, 22.1985)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212784 #847E21
analogous
#215884 #212784 #4D2184
triadic
#212784 #842127 #278421
tetradic
#212784 #842158 #847E21 #21844D
square
#212784 #842158 #847E21 #21844D
split-complementary
#212784 #844D21 #588421
monochromatic
#090A22 #151953 #212784 #2D35B5 #4D55D2

Accessibility & contrast

On white

12.44
#212784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212784
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212784#FFFFFF#000000##FFFFFF
##2127841.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212784;
/* rgb */ color: rgb(33, 39, 132);
/* oklch */ color: oklch(33.8% 0.152 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d61a9',
    500: '#212784',
    950: '#000000',
  },
}
SCSS
$custom: #212784;
$custom-light: #6d61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212784",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 236.364,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33795,
    "c": 0.15242,
    "h": 272.1
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#212784
secondary
#B6AF4B
accent
#DA45E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212784

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

Preview Lab → · Contrast checker → · Palette generator →

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