#212285#212285

#212285 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.159 H 273.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#212285
RGBrgb(33, 34, 133)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 52%)
CMYKcmyk(75.2%, 74.4%, 0%, 47.8%)
CIE-LABlab(20.67, 34.51, -55.03)
CIE-LCHlch(20.67, 64.95, 302.09°)
OKLaboklab(33.07% 0.0084 -0.1592)
OKLCHoklch(33.07% 0.159 273)
XYZxyz(5.4314, 3.1603, 22.5095)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212285 #858421
analogous
#215485 #212285 #522185
triadic
#212285 #852122 #228521
tetradic
#212285 #852154 #858421 #218552
square
#212285 #852154 #858421 #218552
split-complementary
#212285 #855221 #548521
monochromatic
#090923 #151554 #212285 #2D2FB6 #4D4FD3

Accessibility & contrast

On white

12.87
#212285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212285
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212285#FFFFFF#000000##FFFFFF
##2122851.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212285;
/* rgb */ color: rgb(33, 34, 133);
/* oklch */ color: oklch(33.1% 0.159 273.0);
Tailwind
colors: {
  custom: {
    50: '#6d5eaa',
    500: '#212285',
    950: '#000000',
  },
}
SCSS
$custom: #212285;
$custom-light: #6d5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#212285",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 239.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33071,
    "c": 0.15941,
    "h": 273
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#212285
secondary
#B6B54C
accent
#E244E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212285

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

Preview Lab → · Contrast checker → · Palette generator →

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