#212F7D#212F7D

#212F7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.133 H 270.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#212F7D
RGBrgb(33, 47, 125)
HSLhsl(231, 58%, 31%)
HSVhsv(231, 74%, 49%)
CMYKcmyk(73.6%, 62.4%, 0%, 51%)
CIE-LABlab(23.12, 22.91, -45.96)
CIE-LCHlch(23.12, 51.36, 296.50°)
OKLaboklab(34.62% 0.0003 -0.1326)
OKLCHoklch(34.62% 0.133 270.1)
XYZxyz(5.3441, 3.8365, 19.8569)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F7D #7D6F21
analogous
#215D7D #212F7D #41217D
triadic
#212F7D #7D212F #2F7D21
tetradic
#212F7D #7D215D #7D6F21 #217D41
square
#212F7D #7D215D #7D6F21 #217D41
split-complementary
#212F7D #7D4121 #5D7D21
monochromatic
#070B1C #141D4D #212F7D #2E41AD #495ECF

Accessibility & contrast

On white

11.88
#212F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F7D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F7D#FFFFFF#000000##FFFFFF
##212F7D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212f7d;
/* rgb */ color: rgb(33, 47, 125);
/* oklch */ color: oklch(34.6% 0.133 270.1);
Tailwind
colors: {
  custom: {
    50: '#6a67a3',
    500: '#212f7d',
    950: '#000000',
  },
}
SCSS
$custom: #212f7d;
$custom-light: #6a67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212f7d",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 230.87,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34619,
    "c": 0.13263,
    "h": 270.1
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#212F7D
secondary
#B0A04A
accent
#CA46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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