#28145B#28145B

#28145B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.118 H 288.8°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#28145B
RGBrgb(40, 20, 91)
HSLhsl(257, 64%, 22%)
HSVhsv(257, 78%, 36%)
CMYKcmyk(56%, 78%, 0%, 64.3%)
CIE-LABlab(13.87, 29.51, -38.94)
CIE-LCHlch(13.87, 48.86, 307.16°)
OKLaboklab(27.05% 0.0381 -0.1119)
OKLCHoklch(27.05% 0.118 288.8)
XYZxyz(3.0130, 1.7066, 10.0662)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28145B #475B14
analogous
#14245B #28145B #4C145B
triadic
#28145B #5B2814 #145B28
tetradic
#28145B #5B1424 #475B14 #145B4C
square
#28145B #5B1424 #475B14 #145B4C
split-complementary
#28145B #5B4C14 #245B14
monochromatic
#0B0619 #120929 #28145B #3E1F8D #542ABF

Accessibility & contrast

On white

15.66
#28145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#28145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28145B
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28145B#FFFFFF#000000##FFFFFF
##28145B1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#152736
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28145b;
/* rgb */ color: rgb(40, 20, 91);
/* oklch */ color: oklch(27.1% 0.118 288.8);
Tailwind
colors: {
  custom: {
    50: '#68548a',
    500: '#28145b',
    950: '#000000',
  },
}
SCSS
$custom: #28145b;
$custom-light: #68548a;
$custom-dark: #000000;
JSON
{
  "hex": "#28145b",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 256.901,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27054,
    "c": 0.11821,
    "h": 288.8
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#28145B
secondary
#799338
accent
#E741B8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28145B

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

Preview Lab → · Contrast checker → · Palette generator →

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