#212751#212751

#212751 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.076 H 274.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#212751
RGBrgb(33, 39, 81)
HSLhsl(233, 42%, 22%)
HSVhsv(233, 59%, 32%)
CMYKcmyk(59.3%, 51.9%, 0%, 68.2%)
CIE-LABlab(17.31, 11.52, -26.65)
CIE-LCHlch(17.31, 29.03, 293.38°)
OKLaboklab(29.15% 0.0061 -0.0759)
OKLCHoklch(29.15% 0.076 274.6)
XYZxyz(2.8374, 2.3683, 8.0906)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212751 #514B21
analogous
#213F51 #212751 #332151
triadic
#212751 #512127 #275121
tetradic
#212751 #51213F #514B21 #215133
square
#212751 #51213F #514B21 #215133
split-complementary
#212751 #513321 #3F5121
monochromatic
#090A16 #0F1226 #212751 #333C7C #4451A8

Accessibility & contrast

On white

14.25
#212751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212751
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212751#FFFFFF#000000##FFFFFF
##2127511.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D53
Deuteranopia (green-blind)
#0E2950
Tritanopia (blue-blind)
#093038
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212751;
/* rgb */ color: rgb(33, 39, 81);
/* oklch */ color: oklch(29.2% 0.076 274.6);
Tailwind
colors: {
  custom: {
    50: '#616082',
    500: '#212751',
    950: '#000000',
  },
}
SCSS
$custom: #212751;
$custom-light: #616082;
$custom-dark: #000000;
JSON
{
  "hex": "#212751",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 81
  },
  "hsl": {
    "h": 232.5,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29155,
    "c": 0.07617,
    "h": 274.6
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#212751
secondary
#857E49
accent
#C256D2
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05050A
muted
#79797C

Preview Lab

Preview with #212751

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

Preview Lab → · Contrast checker → · Palette generator →

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