#212F7C#212F7C

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

Color values

HEX#212F7C
RGBrgb(33, 47, 124)
HSLhsl(231, 58%, 31%)
HSVhsv(231, 73%, 49%)
CMYKcmyk(73.4%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.04, 22.53, -45.47)
CIE-LCHlch(23.04, 50.75, 296.35°)
OKLaboklab(34.53% 0.0003 -0.1312)
OKLCHoklch(34.53% 0.131 270.1)
XYZxyz(5.2806, 3.8111, 19.5222)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F7C #7C6E21
analogous
#215C7C #212F7C #40217C
triadic
#212F7C #7C212F #2F7C21
tetradic
#212F7C #7C215C #7C6E21 #217C40
square
#212F7C #7C215C #7C6E21 #217C40
split-complementary
#212F7C #7C4021 #5C7C21
monochromatic
#070A1B #141D4C #212F7C #2E41AC #495DCF

Accessibility & contrast

On white

11.92
#212F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F7C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F7C#FFFFFF#000000##FFFFFF
##212F7C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212f7c;
/* rgb */ color: rgb(33, 47, 124);
/* oklch */ color: oklch(34.5% 0.131 270.1);
Tailwind
colors: {
  custom: {
    50: '#6a67a3',
    500: '#212f7c',
    950: '#000000',
  },
}
SCSS
$custom: #212f7c;
$custom-light: #6a67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212f7c",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 230.769,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34528,
    "c": 0.13118,
    "h": 270.1
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#212F7C
secondary
#AF9F4A
accent
#C947E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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