#212F70#212F70

#212F70 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.113 H 270.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#212F70
RGBrgb(33, 47, 112)
HSLhsl(229, 54%, 28%)
HSVhsv(229, 71%, 44%)
CMYKcmyk(70.5%, 58%, 0%, 56.1%)
CIE-LABlab(22.04, 17.82, -39.44)
CIE-LCHlch(22.04, 43.28, 294.32°)
OKLaboklab(33.47% 0 -0.1135)
OKLCHoklch(33.47% 0.113 270)
XYZxyz(4.5673, 3.5258, 15.7659)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F70 #706221
analogous
#215670 #212F70 #3A2170
triadic
#212F70 #70212F #2F7021
tetradic
#212F70 #702156 #706221 #21703A
square
#212F70 #702156 #706221 #21703A
split-complementary
#212F70 #703A21 #567021
monochromatic
#070A18 #131B41 #212F70 #2F439F #445BC8

Accessibility & contrast

On white

12.32
#212F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F70
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F70#FFFFFF#000000##FFFFFF
##212F701.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212f70;
/* rgb */ color: rgb(33, 47, 112);
/* oklch */ color: oklch(33.5% 0.113 270.0);
Tailwind
colors: {
  custom: {
    50: '#67679a',
    500: '#212f70',
    950: '#000000',
  },
}
SCSS
$custom: #212f70;
$custom-light: #67679a;
$custom-dark: #000000;
JSON
{
  "hex": "#212f70",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 229.367,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33468,
    "c": 0.11346,
    "h": 270
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#212F70
secondary
#A49449
accent
#C44ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212F70

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

Preview Lab → · Contrast checker → · Palette generator →

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