#212183#212183

#212183 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.158 H 273.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#212183
RGBrgb(33, 33, 131)
HSLhsl(240, 60%, 32%)
HSVhsv(240, 75%, 51%)
CMYKcmyk(74.8%, 74.8%, 0%, 48.6%)
CIE-LABlab(20.24, 34.41, -54.48)
CIE-LCHlch(20.24, 64.44, 302.28°)
OKLaboklab(32.7% 0.0093 -0.1576)
OKLCHoklch(32.7% 0.158 273.4)
XYZxyz(5.2664, 3.0492, 21.7793)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212183 #838321
analogous
#215283 #212183 #522183
triadic
#212183 #832121 #218321
tetradic
#212183 #832152 #838321 #218352
square
#212183 #832152 #838321 #218352
split-complementary
#212183 #835221 #528321
monochromatic
#080821 #151552 #212183 #2D2DB4 #4C4CD2

Accessibility & contrast

On white

13.04
#212183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212183
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212183#FFFFFF#000000##FFFFFF
##2121831.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212183;
/* rgb */ color: rgb(33, 33, 131);
/* oklch */ color: oklch(32.7% 0.158 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d5da8',
    500: '#212183',
    950: '#000000',
  },
}
SCSS
$custom: #212183;
$custom-light: #6d5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#212183",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 240,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32697,
    "c": 0.15788,
    "h": 273.4
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#212183
secondary
#B5B54B
accent
#E345E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212183

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

Preview Lab → · Contrast checker → · Palette generator →

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