#212F7F#212F7F

#212F7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.136 H 270.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#212F7F
RGBrgb(33, 47, 127)
HSLhsl(231, 59%, 31%)
HSVhsv(231, 74%, 50%)
CMYKcmyk(74%, 63%, 0%, 50.2%)
CIE-LABlab(23.30, 23.69, -46.94)
CIE-LCHlch(23.30, 52.58, 296.78°)
OKLaboklab(34.8% 0.0003 -0.1355)
OKLCHoklch(34.8% 0.136 270.1)
XYZxyz(5.4732, 3.8881, 20.5366)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F7F #7F7121
analogous
#215E7F #212F7F #42217F
triadic
#212F7F #7F212F #2F7F21
tetradic
#212F7F #7F215E #7F7121 #217F42
square
#212F7F #7F215E #7F7121 #217F42
split-complementary
#212F7F #7F4221 #5E7F21
monochromatic
#080B1E #141D4E #212F7F #2E41B0 #4A5ED0

Accessibility & contrast

On white

11.81
#212F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F7F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F7F#FFFFFF#000000##FFFFFF
##212F7F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212f7f;
/* rgb */ color: rgb(33, 47, 127);
/* oklch */ color: oklch(34.8% 0.136 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b67a5',
    500: '#212f7f',
    950: '#000000',
  },
}
SCSS
$custom: #212f7f;
$custom-light: #6b67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#212f7f",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 231.064,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34803,
    "c": 0.1355,
    "h": 270.1
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#212F7F
secondary
#B2A24A
accent
#CB46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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