#212684#212684

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

Color values

HEX#212684
RGBrgb(33, 38, 132)
HSLhsl(237, 60%, 32%)
HSVhsv(237, 75%, 52%)
CMYKcmyk(75%, 71.2%, 0%, 48.2%)
CIE-LABlab(21.49, 31.62, -53.06)
CIE-LCHlch(21.49, 61.77, 300.80°)
OKLaboklab(33.62% 0.0062 -0.1535)
OKLCHoklch(33.62% 0.154 272.3)
XYZxyz(5.4838, 3.3749, 22.1877)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212684 #847F21
analogous
#215784 #212684 #4E2184
triadic
#212684 #842126 #268421
tetradic
#212684 #842157 #847F21 #21844E
square
#212684 #842157 #847F21 #21844E
split-complementary
#212684 #844E21 #578421
monochromatic
#090A22 #151853 #212684 #2D34B5 #4D54D2

Accessibility & contrast

On white

12.54
#212684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212684
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212684#FFFFFF#000000##FFFFFF
##2126841.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212684;
/* rgb */ color: rgb(33, 38, 132);
/* oklch */ color: oklch(33.6% 0.154 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d61a9',
    500: '#212684',
    950: '#000000',
  },
}
SCSS
$custom: #212684;
$custom-light: #6d61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212684",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 236.97,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33623,
    "c": 0.1536,
    "h": 272.3
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#212684
secondary
#B6B04B
accent
#DB45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212684

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

Preview Lab → · Contrast checker → · Palette generator →

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