#212F4E#212F4E

#212F4E is a dark, muted blue. Relative luminance 0.029; OKLCH L 30.9% C 0.059 H 264.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#212F4E
RGBrgb(33, 47, 78)
HSLhsl(221, 41%, 22%)
HSVhsv(221, 58%, 31%)
CMYKcmyk(57.7%, 39.7%, 0%, 69.4%)
CIE-LABlab(19.66, 4.61, -20.89)
CIE-LCHlch(19.66, 21.39, 282.45°)
OKLaboklab(30.9% -0.0054 -0.059)
OKLCHoklch(30.9% 0.059 264.7)
XYZxyz(3.0184, 2.9062, 7.6081)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F4E #4E4021
analogous
#21464E #212F4E #2A214E
triadic
#212F4E #4E212F #2F4E21
tetradic
#212F4E #4E2146 #4E4021 #214E2A
square
#212F4E #4E2146 #4E4021 #214E2A
split-complementary
#212F4E #4E2A21 #464E21
monochromatic
#090D16 #0F1523 #212F4E #334979 #4563A4

Accessibility & contrast

On white

13.28
#212F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#212F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F4E
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F4E#FFFFFF#000000##FFFFFF
##212F4E1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23324F
Deuteranopia (green-blind)
#1E2E4D
Tritanopia (blue-blind)
#0B363A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212f4e;
/* rgb */ color: rgb(33, 47, 78);
/* oklch */ color: oklch(30.9% 0.059 264.7);
Tailwind
colors: {
  custom: {
    50: '#60677f',
    500: '#212f4e',
    950: '#000000',
  },
}
SCSS
$custom: #212f4e;
$custom-light: #60677f;
$custom-dark: #000000;
JSON
{
  "hex": "#212f4e",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 221.333,
    "s": 40.541,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30897,
    "c": 0.05923,
    "h": 264.7
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#212F4E
secondary
#827049
accent
#AB57D0
background
#F5F6F7
surface
#EAEBEE
border
#C6C6C9
text
#05060A
muted
#797A7C

Preview Lab

Preview with #212F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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