#28185B#28185B

#28185B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.113 H 287.6°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#28185B
RGBrgb(40, 24, 91)
HSLhsl(254, 58%, 23%)
HSVhsv(254, 74%, 36%)
CMYKcmyk(56%, 73.6%, 0%, 64.3%)
CIE-LABlab(14.73, 27.10, -37.52)
CIE-LCHlch(14.73, 46.29, 305.84°)
OKLaboklab(27.67% 0.0341 -0.1077)
OKLCHoklch(27.67% 0.113 287.6)
XYZxyz(3.0895, 1.8596, 10.0916)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28185B #4B5B18
analogous
#182A5B #28185B #49185B
triadic
#28185B #5B2818 #185B28
tetradic
#28185B #5B182A #4B5B18 #185B49
square
#28185B #5B182A #4B5B18 #185B49
split-complementary
#28185B #5B4918 #2A5B18
monochromatic
#0B0618 #130B2B #28185B #3D258B #5332BC

Accessibility & contrast

On white

15.31
#28185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28185B
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28185B#FFFFFF#000000##FFFFFF
##28185B1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#142937
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28185b;
/* rgb */ color: rgb(40, 24, 91);
/* oklch */ color: oklch(27.7% 0.113 287.6);
Tailwind
colors: {
  custom: {
    50: '#68568a',
    500: '#28185b',
    950: '#000000',
  },
}
SCSS
$custom: #28185b;
$custom-light: #68568a;
$custom-dark: #000000;
JSON
{
  "hex": "#28185b",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 254.328,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27671,
    "c": 0.11302,
    "h": 287.6
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#28185B
secondary
#7D923D
accent
#E146BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #28185B

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

Preview Lab → · Contrast checker → · Palette generator →

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