#28124B#28124B

#28124B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.099 H 296.2°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#28124B
RGBrgb(40, 18, 75)
HSLhsl(263, 61%, 18%)
HSVhsv(263, 76%, 29%)
CMYKcmyk(46.7%, 76%, 0%, 70.6%)
CIE-LABlab(11.90, 25.62, -31.24)
CIE-LCHlch(11.90, 40.40, 309.36°)
OKLaboklab(25.18% 0.0439 -0.0893)
OKLCHoklch(25.18% 0.099 296.2)
XYZxyz(2.3610, 1.3917, 6.7995)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28124B #354B12
analogous
#12184B #28124B #44124B
triadic
#28124B #4B2812 #124B28
tetradic
#28124B #4B1218 #354B12 #124B44
square
#28124B #4B1218 #354B12 #124B44
split-complementary
#28124B #4B4412 #184B12
monochromatic
#0D0619 #0E061A #28124B #421E7C #5D2AAE

Accessibility & contrast

On white

16.43
#28124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#28124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28124B
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28124B#FFFFFF#000000##FFFFFF
##28124B1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#1F202C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28124b;
/* rgb */ color: rgb(40, 18, 75);
/* oklch */ color: oklch(25.2% 0.099 296.2);
Tailwind
colors: {
  custom: {
    50: '#66527e',
    500: '#28124b',
    950: '#000000',
  },
}
SCSS
$custom: #28124b;
$custom-light: #66527e;
$custom-dark: #000000;
JSON
{
  "hex": "#28124b",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 263.158,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2518,
    "c": 0.09948,
    "h": 296.2
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#28124B
secondary
#658435
accent
#E443A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28124B

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

Preview Lab → · Contrast checker → · Palette generator →

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