#212695#212695

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

Color values

HEX#212695
RGBrgb(33, 38, 149)
HSLhsl(237, 64%, 36%)
HSVhsv(237, 78%, 58%)
CMYKcmyk(77.9%, 74.5%, 0%, 41.6%)
CIE-LABlab(23.27, 37.74, -60.71)
CIE-LCHlch(23.27, 71.49, 301.86°)
OKLaboklab(35.43% 0.0038 -0.1758)
OKLCHoklch(35.43% 0.176 271.2)
XYZxyz(6.7433, 3.8788, 28.8212)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212695 #959021
analogous
#216095 #212695 #562195
triadic
#212695 #952126 #269521
tetradic
#212695 #952160 #959021 #219556
square
#212695 #952160 #959021 #219556
split-complementary
#212695 #955621 #609521
monochromatic
#0B0C31 #161963 #212695 #2C33C7 #575CDA

Accessibility & contrast

On white

11.83
#212695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212695
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212695#FFFFFF#000000##FFFFFF
##2126951.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212695;
/* rgb */ color: rgb(33, 38, 149);
/* oklch */ color: oklch(35.4% 0.176 271.2);
Tailwind
colors: {
  custom: {
    50: '#7161b5',
    500: '#212695',
    950: '#000000',
  },
}
SCSS
$custom: #212695;
$custom-light: #7161b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212695",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 237.414,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.17582,
    "h": 271.2
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#212695
secondary
#BEB954
accent
#E041E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212695

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

Preview Lab → · Contrast checker → · Palette generator →

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