#212945#212945

#212945 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.8% C 0.053 H 270.7°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#212945
RGBrgb(33, 41, 69)
HSLhsl(227, 35%, 20%)
HSVhsv(227, 52%, 27%)
CMYKcmyk(52.2%, 40.6%, 0%, 72.9%)
CIE-LABlab(17.17, 5.59, -18.70)
CIE-LCHlch(17.17, 19.52, 286.65°)
OKLaboklab(28.8% 0.0007 -0.0526)
OKLCHoklch(28.8% 0.053 270.7)
XYZxyz(2.4940, 2.3387, 5.9491)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212945 #453D21
analogous
#213B45 #212945 #2B2145
triadic
#212945 #452129 #294521
tetradic
#212945 #45213B #453D21 #21452B
square
#212945 #45213B #453D21 #21452B
split-complementary
#212945 #452B21 #3B4521
monochromatic
#0A0C15 #0D101C #212945 #35426E #495A98

Accessibility & contrast

On white

14.31
#212945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#212945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212945
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212945#FFFFFF#000000##FFFFFF
##2129451.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2C46
Deuteranopia (green-blind)
#1B2944
Tritanopia (blue-blind)
#142F33
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212945;
/* rgb */ color: rgb(33, 41, 69);
/* oklch */ color: oklch(28.8% 0.053 270.7);
Tailwind
colors: {
  custom: {
    50: '#5f6279',
    500: '#212945',
    950: '#000000',
  },
}
SCSS
$custom: #212945;
$custom-light: #5f6279;
$custom-dark: #000000;
JSON
{
  "hex": "#212945",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 69
  },
  "hsl": {
    "h": 226.667,
    "s": 35.294,
    "l": 20
  },
  "oklch": {
    "l": 0.28797,
    "c": 0.05265,
    "h": 270.7
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#212945
secondary
#796E49
accent
#B35CCB
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#040509
muted
#79797B

Preview Lab

Preview with #212945

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

Preview Lab → · Contrast checker → · Palette generator →

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