#212B4E#212B4E

#212B4E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.065 H 270.1°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#212B4E
RGBrgb(33, 43, 78)
HSLhsl(227, 41%, 22%)
HSVhsv(227, 58%, 31%)
CMYKcmyk(57.7%, 44.9%, 0%, 69.4%)
CIE-LABlab(18.37, 7.48, -22.93)
CIE-LCHlch(18.37, 24.12, 288.06°)
OKLaboklab(29.9% 0.0001 -0.065)
OKLCHoklch(29.9% 0.065 270.1)
XYZxyz(2.8658, 2.6010, 7.5573)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B4E #4E4421
analogous
#21424E #212B4E #2E214E
triadic
#212B4E #4E212B #2B4E21
tetradic
#212B4E #4E2142 #4E4421 #214E2E
square
#212B4E #4E2142 #4E4421 #214E2E
split-complementary
#212B4E #4E2E21 #424E21
monochromatic
#090C16 #0F1323 #212B4E #334379 #455AA4

Accessibility & contrast

On white

13.81
#212B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#212B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B4E
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B4E#FFFFFF#000000##FFFFFF
##212B4E1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F4F
Deuteranopia (green-blind)
#182B4D
Tritanopia (blue-blind)
#0C3338
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212b4e;
/* rgb */ color: rgb(33, 43, 78);
/* oklch */ color: oklch(29.9% 0.065 270.1);
Tailwind
colors: {
  custom: {
    50: '#606480',
    500: '#212b4e',
    950: '#000000',
  },
}
SCSS
$custom: #212b4e;
$custom-light: #606480;
$custom-dark: #000000;
JSON
{
  "hex": "#212b4e",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 226.667,
    "s": 40.541,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.065,
    "h": 270.1
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#212B4E
secondary
#827549
accent
#B657D0
background
#F5F5F7
surface
#EAEAEE
border
#C6C6C9
text
#05050A
muted
#79797C

Preview Lab

Preview with #212B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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