#212F9E#212F9E

#212F9E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.178 H 269.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#212F9E
RGBrgb(33, 47, 158)
HSLhsl(233, 65%, 37%)
HSVhsv(233, 79%, 62%)
CMYKcmyk(79.1%, 70.3%, 0%, 38%)
CIE-LABlab(26.23, 35.39, -61.35)
CIE-LCHlch(26.23, 70.82, 299.98°)
OKLaboklab(37.84% -0.0017 -0.1776)
OKLCHoklch(37.84% 0.178 269.5)
XYZxyz(7.8132, 4.8241, 32.8605)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F9E #9E9021
analogous
#216E9E #212F9E #52219E
triadic
#212F9E #9E212F #2F9E21
tetradic
#212F9E #9E216E #9E9021 #219E52
square
#212F9E #9E216E #9E9021 #219E52
split-complementary
#212F9E #9E5221 #6E9E21
monochromatic
#0C1139 #16206B #212F9E #2C3ED1 #5C6BDD

Accessibility & contrast

On white

10.69
#212F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#212F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F9E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F9E#FFFFFF#000000##FFFFFF
##212F9E1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212f9e;
/* rgb */ color: rgb(33, 47, 158);
/* oklch */ color: oklch(37.8% 0.178 269.5);
Tailwind
colors: {
  custom: {
    50: '#7368bc',
    500: '#212f9e',
    950: '#000000',
  },
}
SCSS
$custom: #212f9e;
$custom-light: #7368bc;
$custom-dark: #000000;
JSON
{
  "hex": "#212f9e",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 233.28,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37842,
    "c": 0.17765,
    "h": 269.5
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#212F9E
secondary
#C1B659
accent
#D53FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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