#28124C#28124C

#28124C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.101 H 295.7°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#28124C
RGBrgb(40, 18, 76)
HSLhsl(263, 62%, 18%)
HSVhsv(263, 76%, 30%)
CMYKcmyk(47.4%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.99, 25.93, -31.78)
CIE-LCHlch(11.99, 41.02, 309.21°)
OKLaboklab(25.28% 0.0437 -0.0909)
OKLCHoklch(25.28% 0.101 295.7)
XYZxyz(2.3955, 1.4055, 6.9811)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28124C #364C12
analogous
#12194C #28124C #45124C
triadic
#28124C #4C2812 #124C28
tetradic
#28124C #4C1219 #364C12 #124C45
square
#28124C #4C1219 #364C12 #124C45
split-complementary
#28124C #4C4512 #194C12
monochromatic
#0D0619 #0E061B #28124C #421E7D #5C29AF

Accessibility & contrast

On white

16.39
#28124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28124C
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28124C#FFFFFF#000000##FFFFFF
##28124C1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#1E202D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28124c;
/* rgb */ color: rgb(40, 18, 76);
/* oklch */ color: oklch(25.3% 0.101 295.7);
Tailwind
colors: {
  custom: {
    50: '#66527f',
    500: '#28124c',
    950: '#000000',
  },
}
SCSS
$custom: #28124c;
$custom-light: #66527f;
$custom-dark: #000000;
JSON
{
  "hex": "#28124c",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 262.759,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25275,
    "c": 0.10082,
    "h": 295.7
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#28124C
secondary
#678535
accent
#E543A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28124C

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

Preview Lab → · Contrast checker → · Palette generator →

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