#2121A8#2121A8

#2121A8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.204 H 270.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2121A8
RGBrgb(33, 33, 168)
HSLhsl(240, 67%, 39%)
HSVhsv(240, 80%, 66%)
CMYKcmyk(80.4%, 80.4%, 0%, 34.1%)
CIE-LABlab(24.44, 46.95, -70.37)
CIE-LCHlch(24.44, 84.59, 303.71°)
OKLaboklab(36.89% 0.002 -0.2037)
OKLCHoklch(36.89% 0.204 270.6)
XYZxyz(8.2365, 4.2373, 37.4220)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2121A8 #A8A821
analogous
#2165A8 #2121A8 #6521A8
triadic
#2121A8 #A82121 #21A821
tetradic
#2121A8 #A82165 #A8A821 #21A865
square
#2121A8 #A82165 #A8A821 #21A865
split-complementary
#2121A8 #A86521 #65A821
monochromatic
#0D0D42 #171775 #2121A8 #3030D6 #6363E0

Accessibility & contrast

On white

11.37
#2121A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2121A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2121A8
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2121A8#FFFFFF#000000##FFFFFF
##2121A81.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0033A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2121a8;
/* rgb */ color: rgb(33, 33, 168);
/* oklch */ color: oklch(36.9% 0.204 270.6);
Tailwind
colors: {
  custom: {
    50: '#765fc3',
    500: '#2121a8',
    950: '#000000',
  },
}
SCSS
$custom: #2121a8;
$custom-light: #765fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2121a8",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 240,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.36894,
    "c": 0.20375,
    "h": 270.6
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#2121A8
secondary
#C5C55F
accent
#EA3EEA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2121A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2121A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva