#21127B#21127B

#21127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.162 H 276.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#21127B
RGBrgb(33, 18, 123)
HSLhsl(249, 74%, 28%)
HSVhsv(249, 85%, 48%)
CMYKcmyk(73.2%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.43, 39.97, -55.69)
CIE-LCHlch(16.43, 68.56, 305.67°)
OKLaboklab(29.75% 0.0184 -0.1609)
OKLCHoklch(29.75% 0.162 276.5)
XYZxyz(4.4175, 2.1856, 18.9241)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21127B #6C7B12
analogous
#12387B #21127B #55127B
triadic
#21127B #7B2112 #127B21
tetradic
#21127B #7B1238 #6C7B12 #127B55
square
#21127B #7B1238 #6C7B12 #127B55
split-complementary
#21127B #7B5512 #387B12
monochromatic
#07041B #130A46 #21127B #2F1AB0 #4228E0

Accessibility & contrast

On white

14.61
#21127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#21127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21127B
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21127B#FFFFFF#000000##FFFFFF
##21127B1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21127b;
/* rgb */ color: rgb(33, 18, 123);
/* oklch */ color: oklch(29.8% 0.162 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c54a2',
    500: '#21127b',
    950: '#000000',
  },
}
SCSS
$custom: #21127b;
$custom-light: #6c54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21127b",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 248.571,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.162,
    "h": 276.5
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#21127B
secondary
#A0B138
accent
#F137D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21127B

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

Preview Lab → · Contrast checker → · Palette generator →

#21127B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva