#28114D#28114D

#28114D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.104 H 295.5°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#28114D
RGBrgb(40, 17, 77)
HSLhsl(263, 64%, 18%)
HSVhsv(263, 78%, 30%)
CMYKcmyk(48.1%, 77.9%, 0%, 69.8%)
CIE-LABlab(11.88, 26.83, -32.67)
CIE-LCHlch(11.88, 42.27, 309.40°)
OKLaboklab(25.22% 0.0446 -0.0935)
OKLCHoklch(25.22% 0.104 295.5)
XYZxyz(2.4147, 1.3878, 7.1604)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28114D #364D11
analogous
#11184D #28114D #46114D
triadic
#28114D #4D2811 #114D28
tetradic
#28114D #4D1118 #364D11 #114D46
square
#28114D #4D1118 #364D11 #114D46
split-complementary
#28114D #4D4611 #184D11
monochromatic
#0D0619 #0E061B #28114D #421C7F #5C27B1

Accessibility & contrast

On white

16.44
#28114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#28114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28114D
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28114D#FFFFFF#000000##FFFFFF
##28114D1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28114d;
/* rgb */ color: rgb(40, 17, 77);
/* oklch */ color: oklch(25.2% 0.104 295.5);
Tailwind
colors: {
  custom: {
    50: '#66517f',
    500: '#28114d',
    950: '#000000',
  },
}
SCSS
$custom: #28114d;
$custom-light: #66517f;
$custom-dark: #000000;
JSON
{
  "hex": "#28114d",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 263,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2522,
    "c": 0.10356,
    "h": 295.5
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#28114D
secondary
#678633
accent
#E741A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28114D

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

Preview Lab → · Contrast checker → · Palette generator →

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