#212957#212957

#212957 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.083 H 273.0°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#212957
RGBrgb(33, 41, 87)
HSLhsl(231, 45%, 24%)
HSVhsv(231, 62%, 34%)
CMYKcmyk(62.1%, 52.9%, 0%, 65.9%)
CIE-LABlab(18.35, 12.36, -29.01)
CIE-LCHlch(18.35, 31.54, 293.08°)
OKLaboklab(30.08% 0.0044 -0.0828)
OKLCHoklch(30.08% 0.083 273)
XYZxyz(3.1399, 2.5971, 9.3508)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212957 #574F21
analogous
#214457 #212957 #342157
triadic
#212957 #572129 #295721
tetradic
#212957 #572144 #574F21 #215734
square
#212957 #572144 #574F21 #215734
split-complementary
#212957 #573421 #445721
monochromatic
#080A16 #10142B #212957 #323E83 #4353B0

Accessibility & contrast

On white

13.82
#212957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#212957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212957
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212957#FFFFFF#000000##FFFFFF
##2129571.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F59
Deuteranopia (green-blind)
#0A2B56
Tritanopia (blue-blind)
#01333B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212957;
/* rgb */ color: rgb(33, 41, 87);
/* oklch */ color: oklch(30.1% 0.083 273.0);
Tailwind
colors: {
  custom: {
    50: '#626287',
    500: '#212957',
    950: '#000000',
  },
}
SCSS
$custom: #212957;
$custom-light: #626287;
$custom-dark: #000000;
JSON
{
  "hex": "#212957",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 87
  },
  "hsl": {
    "h": 231.111,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30081,
    "c": 0.08296,
    "h": 273
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#212957
secondary
#8B8149
accent
#C153D5
background
#F6F5F8
surface
#EBEAEF
border
#C6C6CA
text
#05050B
muted
#7A797C

Preview Lab

Preview with #212957

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

Preview Lab → · Contrast checker → · Palette generator →

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