#212295#212295

#212295 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.180 H 271.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#212295
RGBrgb(33, 34, 149)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 58%)
CMYKcmyk(77.9%, 77.2%, 0%, 41.6%)
CIE-LABlab(22.43, 40.09, -62.09)
CIE-LCHlch(22.43, 73.91, 302.85°)
OKLaboklab(34.84% 0.0055 -0.1798)
OKLCHoklch(34.84% 0.18 271.7)
XYZxyz(6.6222, 3.6366, 28.7809)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212295 #959421
analogous
#215C95 #212295 #5A2195
triadic
#212295 #952122 #229521
tetradic
#212295 #95215C #959421 #21955A
square
#212295 #95215C #959421 #21955A
split-complementary
#212295 #955A21 #5C9521
monochromatic
#0B0B31 #161763 #212295 #2C2DC7 #5758DA

Accessibility & contrast

On white

12.16
#212295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212295
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212295#FFFFFF#000000##FFFFFF
##2122951.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212295;
/* rgb */ color: rgb(33, 34, 149);
/* oklch */ color: oklch(34.8% 0.180 271.7);
Tailwind
colors: {
  custom: {
    50: '#715fb5',
    500: '#212295',
    950: '#000000',
  },
}
SCSS
$custom: #212295;
$custom-light: #715fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#212295",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 239.483,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34841,
    "c": 0.17984,
    "h": 271.7
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#212295
secondary
#BEBD54
accent
#E541E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212295

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

Preview Lab → · Contrast checker → · Palette generator →

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