#212383#212383

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

Color values

HEX#212383
RGBrgb(33, 35, 131)
HSLhsl(239, 60%, 32%)
HSVhsv(239, 75%, 51%)
CMYKcmyk(74.8%, 73.3%, 0%, 48.6%)
CIE-LABlab(20.69, 33.17, -53.75)
CIE-LCHlch(20.69, 63.16, 301.68°)
OKLaboklab(33.02% 0.0082 -0.1555)
OKLCHoklch(33.02% 0.156 273)
XYZxyz(5.3236, 3.1636, 21.7984)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212383 #838121
analogous
#215483 #212383 #502183
triadic
#212383 #832123 #238321
tetradic
#212383 #832154 #838121 #218350
square
#212383 #832154 #838121 #218350
split-complementary
#212383 #835021 #548321
monochromatic
#080921 #151652 #212383 #2D30B4 #4C4FD2

Accessibility & contrast

On white

12.86
#212383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212383
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212383#FFFFFF#000000##FFFFFF
##2123831.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212383;
/* rgb */ color: rgb(33, 35, 131);
/* oklch */ color: oklch(33.0% 0.156 273.0);
Tailwind
colors: {
  custom: {
    50: '#6d5fa8',
    500: '#212383',
    950: '#000000',
  },
}
SCSS
$custom: #212383;
$custom-light: #6d5fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#212383",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 238.776,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33017,
    "c": 0.15568,
    "h": 273
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#212383
secondary
#B5B34B
accent
#E045E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212383

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

Preview Lab → · Contrast checker → · Palette generator →

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