#212985#212985

#212985 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.151 H 271.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#212985
RGBrgb(33, 41, 133)
HSLhsl(235, 60%, 33%)
HSVhsv(235, 75%, 52%)
CMYKcmyk(75.2%, 69.2%, 0%, 47.8%)
CIE-LABlab(22.31, 30.04, -52.34)
CIE-LCHlch(22.31, 60.34, 299.85°)
OKLaboklab(34.25% 0.0042 -0.1514)
OKLCHoklch(34.25% 0.151 271.6)
XYZxyz(5.6523, 3.6021, 22.5831)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212985 #857D21
analogous
#215B85 #212985 #4B2185
triadic
#212985 #852129 #298521
tetradic
#212985 #85215B #857D21 #21854B
square
#212985 #85215B #857D21 #21854B
split-complementary
#212985 #854B21 #5B8521
monochromatic
#090B23 #151A54 #212985 #2D38B6 #4D58D3

Accessibility & contrast

On white

12.21
#212985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212985
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212985#FFFFFF#000000##FFFFFF
##2129851.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212985;
/* rgb */ color: rgb(33, 41, 133);
/* oklch */ color: oklch(34.2% 0.151 271.6);
Tailwind
colors: {
  custom: {
    50: '#6d63a9',
    500: '#212985',
    950: '#000000',
  },
}
SCSS
$custom: #212985;
$custom-light: #6d63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212985",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 235.2,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34249,
    "c": 0.15141,
    "h": 271.6
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#212985
secondary
#B6AE4C
accent
#D744E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212985

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

Preview Lab → · Contrast checker → · Palette generator →

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