#212940#212940

#212940 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.5% C 0.044 H 268.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#212940
RGBrgb(33, 41, 64)
HSLhsl(225, 32%, 19%)
HSVhsv(225, 48%, 25%)
CMYKcmyk(48.4%, 35.9%, 0%, 74.9%)
CIE-LABlab(16.89, 3.80, -15.70)
CIE-LCHlch(16.89, 16.15, 283.61°)
OKLaboklab(28.48% -0.0009 -0.044)
OKLCHoklch(28.48% 0.044 268.9)
XYZxyz(2.3453, 2.2793, 5.1659)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212940 #403821
analogous
#213940 #212940 #292140
triadic
#212940 #402129 #294021
tetradic
#212940 #402139 #403821 #214029
square
#212940 #402139 #403821 #214029
split-complementary
#212940 #402921 #394021
monochromatic
#0A0D14 #0C0F18 #212940 #364368 #4B5D91

Accessibility & contrast

On white

14.43
#212940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#212940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212940
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212940#FFFFFF#000000##FFFFFF
##2129401.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B41
Deuteranopia (green-blind)
#1E283F
Tritanopia (blue-blind)
#162E31
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212940;
/* rgb */ color: rgb(33, 41, 64);
/* oklch */ color: oklch(28.5% 0.044 268.9);
Tailwind
colors: {
  custom: {
    50: '#5e6275',
    500: '#212940',
    950: '#000000',
  },
}
SCSS
$custom: #212940;
$custom-light: #5e6275;
$custom-dark: #000000;
JSON
{
  "hex": "#212940",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 64
  },
  "hsl": {
    "h": 224.516,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28484,
    "c": 0.04396,
    "h": 268.9
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#212940
secondary
#746949
accent
#AD60C8
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#040508
muted
#79797B

Preview Lab

Preview with #212940

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

Preview Lab → · Contrast checker → · Palette generator →

#212940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva