#212F80#212F80

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

Color values

HEX#212F80
RGBrgb(33, 47, 128)
HSLhsl(231, 59%, 32%)
HSVhsv(231, 74%, 50%)
CMYKcmyk(74.2%, 63.3%, 0%, 49.8%)
CIE-LABlab(23.39, 24.08, -47.43)
CIE-LCHlch(23.39, 53.19, 296.92°)
OKLaboklab(34.89% 0.0003 -0.1369)
OKLCHoklch(34.89% 0.137 270.1)
XYZxyz(5.5387, 3.9143, 20.8815)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F80 #807221
analogous
#215F80 #212F80 #432180
triadic
#212F80 #80212F #2F8021
tetradic
#212F80 #80215F #807221 #218043
square
#212F80 #80215F #807221 #218043
split-complementary
#212F80 #804321 #5F8021
monochromatic
#080B1F #141D4F #212F80 #2E41B1 #4B5FD1

Accessibility & contrast

On white

11.78
#212F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F80
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F80#FFFFFF#000000##FFFFFF
##212F801.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212f80;
/* rgb */ color: rgb(33, 47, 128);
/* oklch */ color: oklch(34.9% 0.137 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b67a6',
    500: '#212f80',
    950: '#000000',
  },
}
SCSS
$custom: #212f80;
$custom-light: #6b67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212f80",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 231.158,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34895,
    "c": 0.13693,
    "h": 270.1
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212F80

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

Preview Lab → · Contrast checker → · Palette generator →

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