#212283#212283

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

Color values

HEX#212283
RGBrgb(33, 34, 131)
HSLhsl(239, 60%, 32%)
HSVhsv(239, 75%, 51%)
CMYKcmyk(74.8%, 74%, 0%, 48.6%)
CIE-LABlab(20.46, 33.79, -54.12)
CIE-LCHlch(20.46, 63.80, 301.98°)
OKLaboklab(32.86% 0.0087 -0.1565)
OKLCHoklch(32.86% 0.157 273.2)
XYZxyz(5.2946, 3.1055, 21.7887)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212283 #838221
analogous
#215383 #212283 #512183
triadic
#212283 #832122 #228321
tetradic
#212283 #832153 #838221 #218351
square
#212283 #832153 #838221 #218351
split-complementary
#212283 #835121 #538321
monochromatic
#080921 #151552 #212283 #2D2FB4 #4C4ED2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212283#FFFFFF#000000##FFFFFF
##2122831.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)
#003686
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212283;
/* rgb */ color: rgb(33, 34, 131);
/* oklch */ color: oklch(32.9% 0.157 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d5ea8',
    500: '#212283',
    950: '#000000',
  },
}
SCSS
$custom: #212283;
$custom-light: #6d5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#212283",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 239.388,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32855,
    "c": 0.15679,
    "h": 273.2
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#212283
secondary
#B5B44B
accent
#E145E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212283

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

Preview Lab → · Contrast checker → · Palette generator →

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