#21128F#21128F

#21128F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.186 H 273.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#21128F
RGBrgb(33, 18, 143)
HSLhsl(247, 78%, 32%)
HSVhsv(247, 87%, 56%)
CMYKcmyk(76.9%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.96, 46.14, -64.12)
CIE-LCHlch(18.96, 78.99, 305.74°)
OKLaboklab(32.22% 0.0122 -0.1854)
OKLCHoklch(32.22% 0.186 273.8)
XYZxyz(5.7998, 2.7385, 26.2042)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21128F #808F12
analogous
#12428F #21128F #60128F
triadic
#21128F #8F2112 #128F21
tetradic
#21128F #8F1242 #808F12 #128F60
square
#21128F #8F1242 #808F12 #128F60
split-complementary
#21128F #8F6012 #428F12
monochromatic
#080422 #140B59 #21128F #2E19C5 #4B36E6

Accessibility & contrast

On white

13.57
#21128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21128F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21128F#FFFFFF#000000##FFFFFF
##21128F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21128f;
/* rgb */ color: rgb(33, 18, 143);
/* oklch */ color: oklch(32.2% 0.186 273.8);
Tailwind
colors: {
  custom: {
    50: '#7156b1',
    500: '#21128f',
    950: '#000000',
  },
}
SCSS
$custom: #21128f;
$custom-light: #7156b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21128f",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 247.2,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32219,
    "c": 0.18577,
    "h": 273.8
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#21128F
secondary
#B3C33A
accent
#F434DD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21128F

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

Preview Lab → · Contrast checker → · Palette generator →

#21128F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva