#212775#212775

#212775 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.132 H 273.1°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#212775
RGBrgb(33, 39, 117)
HSLhsl(236, 56%, 29%)
HSVhsv(236, 72%, 46%)
CMYKcmyk(71.8%, 66.7%, 0%, 54.1%)
CIE-LABlab(20.28, 25.35, -45.52)
CIE-LCHlch(20.28, 52.10, 299.12°)
OKLaboklab(32.3% 0.007 -0.1314)
OKLCHoklch(32.3% 0.132 273.1)
XYZxyz(4.5625, 3.0583, 17.1760)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212775 #756F21
analogous
#215175 #212775 #452175
triadic
#212775 #752127 #277521
tetradic
#212775 #752151 #756F21 #217545
square
#212775 #752151 #756F21 #217545
split-complementary
#212775 #754521 #517521
monochromatic
#070818 #141745 #212775 #2E37A5 #464FCB

Accessibility & contrast

On white

13.03
#212775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212775
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212775#FFFFFF#000000##FFFFFF
##2127751.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212775;
/* rgb */ color: rgb(33, 39, 117);
/* oklch */ color: oklch(32.3% 0.132 273.1);
Tailwind
colors: {
  custom: {
    50: '#69619e',
    500: '#212775',
    950: '#000000',
  },
}
SCSS
$custom: #212775;
$custom-light: #69619e;
$custom-dark: #000000;
JSON
{
  "hex": "#212775",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 117
  },
  "hsl": {
    "h": 235.714,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32296,
    "c": 0.13159,
    "h": 273.1
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#212775
secondary
#A8A24A
accent
#D549DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212775

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

Preview Lab → · Contrast checker → · Palette generator →

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