#212185#212185

#212185 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.160 H 273.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#212185
RGBrgb(33, 33, 133)
HSLhsl(240, 60%, 33%)
HSVhsv(240, 75%, 52%)
CMYKcmyk(75.2%, 75.2%, 0%, 47.8%)
CIE-LABlab(20.46, 35.12, -55.39)
CIE-LCHlch(20.46, 65.58, 302.38°)
OKLaboklab(32.92% 0.0089 -0.1602)
OKLCHoklch(32.92% 0.16 273.2)
XYZxyz(5.4033, 3.1040, 22.5001)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212185 #858521
analogous
#215385 #212185 #532185
triadic
#212185 #852121 #218521
tetradic
#212185 #852153 #858521 #218553
square
#212185 #852153 #858521 #218553
split-complementary
#212185 #855321 #538521
monochromatic
#090923 #151554 #212185 #2D2DB6 #4D4DD3

Accessibility & contrast

On white

12.95
#212185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212185
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212185#FFFFFF#000000##FFFFFF
##2121851.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212185;
/* rgb */ color: rgb(33, 33, 133);
/* oklch */ color: oklch(32.9% 0.160 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d5daa',
    500: '#212185',
    950: '#000000',
  },
}
SCSS
$custom: #212185;
$custom-light: #6d5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#212185",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.16049,
    "h": 273.2
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#212185
secondary
#B6B64C
accent
#E344E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212185

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

Preview Lab → · Contrast checker → · Palette generator →

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