#212585#212585

#212585 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.156 H 272.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#212585
RGBrgb(33, 37, 133)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 52%)
CMYKcmyk(75.2%, 72.2%, 0%, 47.8%)
CIE-LABlab(21.35, 32.63, -53.91)
CIE-LCHlch(21.35, 63.01, 301.19°)
OKLaboklab(33.56% 0.0067 -0.1559)
OKLCHoklch(33.56% 0.156 272.5)
XYZxyz(5.5210, 3.3394, 22.5393)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212585 #858121
analogous
#215785 #212585 #4F2185
triadic
#212585 #852125 #258521
tetradic
#212585 #852157 #858121 #21854F
square
#212585 #852157 #858121 #21854F
split-complementary
#212585 #854F21 #578521
monochromatic
#090A23 #151754 #212585 #2D33B6 #4D53D3

Accessibility & contrast

On white

12.59
#212585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212585
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212585#FFFFFF#000000##FFFFFF
##2125851.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212585;
/* rgb */ color: rgb(33, 37, 133);
/* oklch */ color: oklch(33.6% 0.156 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d60aa',
    500: '#212585',
    950: '#000000',
  },
}
SCSS
$custom: #212585;
$custom-light: #6d60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212585",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 237.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33559,
    "c": 0.15608,
    "h": 272.5
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#212585
secondary
#B6B24C
accent
#DD44E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212585

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

Preview Lab → · Contrast checker → · Palette generator →

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