#212157#212157

#212157 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.095 H 278.4°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#212157
RGBrgb(33, 33, 87)
HSLhsl(240, 45%, 24%)
HSVhsv(240, 62%, 34%)
CMYKcmyk(62.1%, 62.1%, 0%, 65.9%)
CIE-LABlab(16.00, 18.15, -32.81)
CIE-LCHlch(16.00, 37.49, 298.95°)
OKLaboklab(28.32% 0.014 -0.0941)
OKLCHoklch(28.32% 0.095 278.4)
XYZxyz(2.8908, 2.0990, 9.2678)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212157 #575721
analogous
#213C57 #212157 #3C2157
triadic
#212157 #572121 #215721
tetradic
#212157 #57213C #575721 #21573C
square
#212157 #57213C #575721 #21573C
split-complementary
#212157 #573C21 #3C5721
monochromatic
#080816 #10102B #212157 #323283 #4343B0

Accessibility & contrast

On white

14.79
#212157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#212157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212157
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212157#FFFFFF#000000##FFFFFF
##2121571.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#032E38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #212157;
/* rgb */ color: rgb(33, 33, 87);
/* oklch */ color: oklch(28.3% 0.095 278.4);
Tailwind
colors: {
  custom: {
    50: '#625c87',
    500: '#212157',
    950: '#000000',
  },
}
SCSS
$custom: #212157;
$custom-light: #625c87;
$custom-dark: #000000;
JSON
{
  "hex": "#212157",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 240,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28315,
    "c": 0.09514,
    "h": 278.4
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#212157
secondary
#8B8B49
accent
#D553D5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212157

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

Preview Lab → · Contrast checker → · Palette generator →

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