#212995#212995

#212995 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.173 H 270.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#212995
RGBrgb(33, 41, 149)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 58%)
CMYKcmyk(77.9%, 72.5%, 0%, 41.6%)
CIE-LABlab(23.93, 35.90, -59.62)
CIE-LCHlch(23.93, 69.59, 301.05°)
OKLaboklab(35.91% 0.0023 -0.1726)
OKLCHoklch(35.91% 0.173 270.8)
XYZxyz(6.8431, 4.0784, 28.8545)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212995 #958D21
analogous
#216395 #212995 #532195
triadic
#212995 #952129 #299521
tetradic
#212995 #952163 #958D21 #219553
square
#212995 #952163 #958D21 #219553
split-complementary
#212995 #955321 #639521
monochromatic
#0B0D31 #161B63 #212995 #2C37C7 #5760DA

Accessibility & contrast

On white

11.57
#212995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212995
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212995#FFFFFF#000000##FFFFFF
##2129951.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212995;
/* rgb */ color: rgb(33, 41, 149);
/* oklch */ color: oklch(35.9% 0.173 270.8);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#212995',
    950: '#000000',
  },
}
SCSS
$custom: #212995;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212995",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 235.862,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35908,
    "c": 0.17263,
    "h": 270.8
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#212995
secondary
#BEB654
accent
#DB41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212995

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

Preview Lab → · Contrast checker → · Palette generator →

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