#21128A#21128A

#21128A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.180 H 274.4°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#21128A
RGBrgb(33, 18, 138)
HSLhsl(248, 77%, 31%)
HSVhsv(248, 87%, 54%)
CMYKcmyk(76.1%, 87%, 0%, 45.9%)
CIE-LABlab(18.32, 44.62, -62.06)
CIE-LCHlch(18.32, 76.44, 305.72°)
OKLaboklab(31.6% 0.0137 -0.1794)
OKLCHoklch(31.6% 0.18 274.4)
XYZxyz(5.4294, 2.5904, 24.2537)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21128A #7B8A12
analogous
#123F8A #21128A #5D128A
triadic
#21128A #8A2112 #128A21
tetradic
#21128A #8A123F #7B8A12 #128A5D
square
#21128A #8A123F #7B8A12 #128A5D
split-complementary
#21128A #8A5D12 #3F8A12
monochromatic
#07041E #140B54 #21128A #2E19C0 #4832E4

Accessibility & contrast

On white

13.83
#21128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#21128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21128A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21128A#FFFFFF#000000##FFFFFF
##21128A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21128a;
/* rgb */ color: rgb(33, 18, 138);
/* oklch */ color: oklch(31.6% 0.180 274.4);
Tailwind
colors: {
  custom: {
    50: '#7055ae',
    500: '#21128a',
    950: '#000000',
  },
}
SCSS
$custom: #21128a;
$custom-light: #7055ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21128a",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 247.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31596,
    "c": 0.17993,
    "h": 274.4
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#21128A
secondary
#AEBF39
accent
#F334DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #21128A

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

Preview Lab → · Contrast checker → · Palette generator →

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