#28114B#28114B

#28114B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.101 H 296.5°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#28114B
RGBrgb(40, 17, 75)
HSLhsl(264, 63%, 18%)
HSVhsv(264, 77%, 29%)
CMYKcmyk(46.7%, 77.3%, 0%, 70.6%)
CIE-LABlab(11.69, 26.21, -31.59)
CIE-LCHlch(11.69, 41.05, 309.69°)
OKLaboklab(25.03% 0.0451 -0.0903)
OKLCHoklch(25.03% 0.101 296.5)
XYZxyz(2.3452, 1.3600, 6.7942)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28114B #344B11
analogous
#11174B #28114B #45114B
triadic
#28114B #4B2811 #114B28
tetradic
#28114B #4B1117 #344B11 #114B45
square
#28114B #4B1117 #344B11 #114B45
split-complementary
#28114B #4B4511 #174B11
monochromatic
#0D0619 #0D0619 #28114B #431C7D #5D28AF

Accessibility & contrast

On white

16.51
#28114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28114B
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28114B#FFFFFF#000000##FFFFFF
##28114B1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#1F1F2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28114b;
/* rgb */ color: rgb(40, 17, 75);
/* oklch */ color: oklch(25.0% 0.101 296.5);
Tailwind
colors: {
  custom: {
    50: '#66517e',
    500: '#28114b',
    950: '#000000',
  },
}
SCSS
$custom: #28114b;
$custom-light: #66517e;
$custom-dark: #000000;
JSON
{
  "hex": "#28114b",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 263.793,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25028,
    "c": 0.1009,
    "h": 296.5
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#28114B
secondary
#648433
accent
#E642A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28114B

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

Preview Lab → · Contrast checker → · Palette generator →

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