#212E75#212E75

#212E75 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.122 H 270.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#212E75
RGBrgb(33, 46, 117)
HSLhsl(231, 56%, 29%)
HSVhsv(231, 72%, 46%)
CMYKcmyk(71.8%, 60.7%, 0%, 54.1%)
CIE-LABlab(22.16, 20.49, -42.44)
CIE-LCHlch(22.16, 47.13, 295.78°)
OKLaboklab(33.69% 0.0011 -0.1223)
OKLCHoklch(33.69% 0.122 270.5)
XYZxyz(4.8140, 3.5612, 17.2599)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E75 #756821
analogous
#215875 #212E75 #3E2175
triadic
#212E75 #75212E #2E7521
tetradic
#212E75 #752158 #756821 #21753E
square
#212E75 #752158 #756821 #21753E
split-complementary
#212E75 #753E21 #587521
monochromatic
#070918 #141B45 #212E75 #2E41A5 #465ACB

Accessibility & contrast

On white

12.26
#212E75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212E75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E75
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E75#FFFFFF#000000##FFFFFF
##212E751.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003977
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212e75;
/* rgb */ color: rgb(33, 46, 117);
/* oklch */ color: oklch(33.7% 0.122 270.5);
Tailwind
colors: {
  custom: {
    50: '#68669d',
    500: '#212e75',
    950: '#000000',
  },
}
SCSS
$custom: #212e75;
$custom-light: #68669d;
$custom-dark: #000000;
JSON
{
  "hex": "#212e75",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 117
  },
  "hsl": {
    "h": 230.714,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33692,
    "c": 0.1223,
    "h": 270.5
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#212E75
secondary
#A89A4A
accent
#C849DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212E75

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

Preview Lab → · Contrast checker → · Palette generator →

#212E75 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva