#212F83#212F83

#212F83 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.141 H 270.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#212F83
RGBrgb(33, 47, 131)
HSLhsl(231, 60%, 32%)
HSVhsv(231, 75%, 51%)
CMYKcmyk(74.8%, 64.1%, 0%, 48.6%)
CIE-LABlab(23.65, 25.24, -48.88)
CIE-LCHlch(23.65, 55.01, 297.31°)
OKLaboklab(35.18% 0.0002 -0.1412)
OKLCHoklch(35.18% 0.141 270.1)
XYZxyz(5.7390, 3.9945, 21.9369)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F83 #837521
analogous
#216083 #212F83 #442183
triadic
#212F83 #83212F #2F8321
tetradic
#212F83 #832160 #837521 #218344
square
#212F83 #832160 #837521 #218344
split-complementary
#212F83 #834421 #608321
monochromatic
#080C21 #151D52 #212F83 #2D41B4 #4C5FD2

Accessibility & contrast

On white

11.67
#212F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F83
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F83#FFFFFF#000000##FFFFFF
##212F831.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003481
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212f83;
/* rgb */ color: rgb(33, 47, 131);
/* oklch */ color: oklch(35.2% 0.141 270.1);
Tailwind
colors: {
  custom: {
    50: '#6c67a8',
    500: '#212f83',
    950: '#000000',
  },
}
SCSS
$custom: #212f83;
$custom-light: #6c67a8;
$custom-dark: #000000;
JSON
{
  "hex": "#212f83",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 231.429,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35176,
    "c": 0.14118,
    "h": 270.1
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#212F83
secondary
#B5A64B
accent
#CC45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #212F83

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

Preview Lab → · Contrast checker → · Palette generator →

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