#28114F#28114F

#28114F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.106 H 294.6°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#28114F
RGBrgb(40, 17, 79)
HSLhsl(262, 65%, 19%)
HSVhsv(262, 78%, 31%)
CMYKcmyk(49.4%, 78.5%, 0%, 69%)
CIE-LABlab(12.07, 27.45, -33.73)
CIE-LCHlch(12.07, 43.49, 309.14°)
OKLaboklab(25.42% 0.0442 -0.0966)
OKLCHoklch(25.42% 0.106 294.6)
XYZxyz(2.4864, 1.4165, 7.5380)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28114F #384F11
analogous
#11194F #28114F #47114F
triadic
#28114F #4F2811 #114F28
tetradic
#28114F #4F1119 #384F11 #114F47
square
#28114F #4F1119 #384F11 #114F47
split-complementary
#28114F #4F4711 #194F11
monochromatic
#0D0519 #0F061D #28114F #421C81 #5B27B4

Accessibility & contrast

On white

16.36
#28114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28114F
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28114F#FFFFFF#000000##FFFFFF
##28114F1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#1D212E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28114f;
/* rgb */ color: rgb(40, 17, 79);
/* oklch */ color: oklch(25.4% 0.106 294.6);
Tailwind
colors: {
  custom: {
    50: '#675181',
    500: '#28114f',
    950: '#000000',
  },
}
SCSS
$custom: #28114f;
$custom-light: #675181;
$custom-dark: #000000;
JSON
{
  "hex": "#28114f",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 262.258,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25415,
    "c": 0.1062,
    "h": 294.6
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#28114F
secondary
#698833
accent
#E840A9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28114F

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

Preview Lab → · Contrast checker → · Palette generator →

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