#28124A#28124A

#28124A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.098 H 296.7°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#28124A
RGBrgb(40, 18, 74)
HSLhsl(264, 61%, 18%)
HSVhsv(264, 76%, 29%)
CMYKcmyk(45.9%, 75.7%, 0%, 71%)
CIE-LABlab(11.81, 25.31, -30.70)
CIE-LCHlch(11.81, 39.79, 309.51°)
OKLaboklab(25.09% 0.0441 -0.0877)
OKLCHoklch(25.09% 0.098 296.7)
XYZxyz(2.3271, 1.3781, 6.6206)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28124A #344A12
analogous
#12184A #28124A #44124A
triadic
#28124A #4A2812 #124A28
tetradic
#28124A #4A1218 #344A12 #124A44
square
#28124A #4A1218 #344A12 #124A44
split-complementary
#28124A #4A4412 #184A12
monochromatic
#0D0619 #0D0619 #28124A #431E7B #5D2AAC

Accessibility & contrast

On white

16.46
#28124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28124A
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28124A#FFFFFF#000000##FFFFFF
##28124A1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#1F202C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28124a;
/* rgb */ color: rgb(40, 18, 74);
/* oklch */ color: oklch(25.1% 0.098 296.7);
Tailwind
colors: {
  custom: {
    50: '#66517d',
    500: '#28124a',
    950: '#000000',
  },
}
SCSS
$custom: #28124a;
$custom-light: #66517d;
$custom-dark: #000000;
JSON
{
  "hex": "#28124a",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 263.571,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25087,
    "c": 0.09812,
    "h": 296.7
  },
  "luminance": 0.01378
}

Semantic roles & 50–950 ramp

primary
#28124A
secondary
#648335
accent
#E444A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28124A

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

Preview Lab → · Contrast checker → · Palette generator →

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