#212793#212793

#212793 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.172 H 271.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#212793
RGBrgb(33, 39, 147)
HSLhsl(237, 63%, 35%)
HSVhsv(237, 78%, 58%)
CMYKcmyk(77.6%, 73.5%, 0%, 42.4%)
CIE-LABlab(23.27, 36.42, -59.47)
CIE-LCHlch(23.27, 69.74, 301.48°)
OKLaboklab(35.37% 0.0036 -0.1722)
OKLCHoklch(35.37% 0.172 271.2)
XYZxyz(6.6174, 3.8802, 27.9983)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212793 #938D21
analogous
#216093 #212793 #542193
triadic
#212793 #932127 #279321
tetradic
#212793 #932160 #938D21 #219354
square
#212793 #932160 #938D21 #219354
split-complementary
#212793 #935421 #609321
monochromatic
#0B0C2F #161A61 #212793 #2C34C5 #555CD9

Accessibility & contrast

On white

11.82
#212793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212793
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212793#FFFFFF#000000##FFFFFF
##2127931.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212793;
/* rgb */ color: rgb(33, 39, 147);
/* oklch */ color: oklch(35.4% 0.172 271.2);
Tailwind
colors: {
  custom: {
    50: '#7062b4',
    500: '#212793',
    950: '#000000',
  },
}
SCSS
$custom: #212793;
$custom-light: #7062b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212793",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 236.842,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35374,
    "c": 0.1722,
    "h": 271.2
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#212793
secondary
#BDB753
accent
#DE41E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212793

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

Preview Lab → · Contrast checker → · Palette generator →

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