#28114C#28114C

#28114C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.102 H 296.0°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#28114C
RGBrgb(40, 17, 76)
HSLhsl(263, 63%, 18%)
HSVhsv(263, 78%, 30%)
CMYKcmyk(47.4%, 77.6%, 0%, 70.2%)
CIE-LABlab(11.78, 26.52, -32.13)
CIE-LCHlch(11.78, 41.66, 309.54°)
OKLaboklab(25.12% 0.0448 -0.0919)
OKLCHoklch(25.12% 0.102 296)
XYZxyz(2.3797, 1.3738, 6.9759)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28114C #354C11
analogous
#11174C #28114C #45114C
triadic
#28114C #4C2811 #114C28
tetradic
#28114C #4C1117 #354C11 #114C45
square
#28114C #4C1117 #354C11 #114C45
split-complementary
#28114C #4C4511 #174C11
monochromatic
#0D0619 #0E061A #28114C #421C7E #5D27B0

Accessibility & contrast

On white

16.47
#28114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#28114C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28114C
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28114C#FFFFFF#000000##FFFFFF
##28114C1.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#1E202D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28114c;
/* rgb */ color: rgb(40, 17, 76);
/* oklch */ color: oklch(25.1% 0.102 296.0);
Tailwind
colors: {
  custom: {
    50: '#66517f',
    500: '#28114c',
    950: '#000000',
  },
}
SCSS
$custom: #28114c;
$custom-light: #66517f;
$custom-dark: #000000;
JSON
{
  "hex": "#28114c",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 263.39,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25124,
    "c": 0.10223,
    "h": 296
  },
  "luminance": 0.01374
}

Semantic roles & 50–950 ramp

primary
#28114C
secondary
#658533
accent
#E641A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28114C

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

Preview Lab → · Contrast checker → · Palette generator →

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