#212451#212451

#212451 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.5% C 0.081 H 277.1°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#212451
RGBrgb(33, 36, 81)
HSLhsl(236, 42%, 22%)
HSVhsv(236, 59%, 32%)
CMYKcmyk(59.3%, 55.6%, 0%, 68.2%)
CIE-LABlab(16.40, 13.71, -28.11)
CIE-LCHlch(16.40, 31.28, 296.00°)
OKLaboklab(28.47% 0.01 -0.0803)
OKLCHoklch(28.47% 0.081 277.1)
XYZxyz(2.7428, 2.1790, 8.0590)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212451 #514E21
analogous
#213C51 #212451 #362151
triadic
#212451 #512124 #245121
tetradic
#212451 #51213C #514E21 #215136
square
#212451 #51213C #514E21 #215136
split-complementary
#212451 #513621 #3C5121
monochromatic
#090A16 #0F1126 #212451 #33377C #444BA8

Accessibility & contrast

On white

14.63
#212451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#212451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212451
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212451#FFFFFF#000000##FFFFFF
##2124511.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B53
Deuteranopia (green-blind)
#072750
Tritanopia (blue-blind)
#0A2E36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #212451;
/* rgb */ color: rgb(33, 36, 81);
/* oklch */ color: oklch(28.5% 0.081 277.1);
Tailwind
colors: {
  custom: {
    50: '#615e82',
    500: '#212451',
    950: '#000000',
  },
}
SCSS
$custom: #212451;
$custom-light: #615e82;
$custom-dark: #000000;
JSON
{
  "hex": "#212451",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 81
  },
  "hsl": {
    "h": 236.25,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28465,
    "c": 0.08088,
    "h": 277.1
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#212451
secondary
#858149
accent
#CA56D2
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #212451

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

Preview Lab → · Contrast checker → · Palette generator →

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