#212F75#212F75

#212F75 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.121 H 270.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#212F75
RGBrgb(33, 47, 117)
HSLhsl(230, 56%, 29%)
HSVhsv(230, 72%, 46%)
CMYKcmyk(71.8%, 59.8%, 0%, 54.1%)
CIE-LABlab(22.44, 19.79, -41.98)
CIE-LCHlch(22.44, 46.41, 295.24°)
OKLaboklab(33.9% 0.0002 -0.1209)
OKLCHoklch(33.9% 0.121 270.1)
XYZxyz(4.8535, 3.6402, 17.2730)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F75 #756721
analogous
#215975 #212F75 #3D2175
triadic
#212F75 #75212F #2F7521
tetradic
#212F75 #752159 #756721 #21753D
square
#212F75 #752159 #756721 #21753D
split-complementary
#212F75 #753D21 #597521
monochromatic
#070A18 #141C45 #212F75 #2E42A5 #465CCB

Accessibility & contrast

On white

12.15
#212F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F75
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F75#FFFFFF#000000##FFFFFF
##212F751.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212f75;
/* rgb */ color: rgb(33, 47, 117);
/* oklch */ color: oklch(33.9% 0.121 270.1);
Tailwind
colors: {
  custom: {
    50: '#68679d',
    500: '#212f75',
    950: '#000000',
  },
}
SCSS
$custom: #212f75;
$custom-light: #68679d;
$custom-dark: #000000;
JSON
{
  "hex": "#212f75",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 230,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33901,
    "c": 0.12093,
    "h": 270.1
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#212F75
secondary
#A8984A
accent
#C649DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212F75

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

Preview Lab → · Contrast checker → · Palette generator →

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