#28186D#28186D

#28186D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.137 H 282.6°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#28186D
RGBrgb(40, 24, 109)
HSLhsl(251, 64%, 26%)
HSVhsv(251, 78%, 43%)
CMYKcmyk(63.3%, 78%, 0%, 57.3%)
CIE-LABlab(16.54, 33.08, -46.45)
CIE-LCHlch(16.54, 57.02, 305.46°)
OKLaboklab(29.51% 0.03 -0.1339)
OKLCHoklch(29.51% 0.137 282.6)
XYZxyz(3.9612, 2.2082, 14.6825)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28186D #5D6D18
analogous
#18326D #28186D #52186D
triadic
#28186D #6D2818 #186D28
tetradic
#28186D #6D1832 #5D6D18 #186D52
square
#28186D #6D1832 #5D6D18 #186D52
split-complementary
#28186D #6D5218 #326D18
monochromatic
#090619 #160D3B #28186D #3A239F #4D2ED1

Accessibility & contrast

On white

14.57
#28186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#28186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28186D
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28186D#FFFFFF#000000##FFFFFF
##28186D1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28186d;
/* rgb */ color: rgb(40, 24, 109);
/* oklch */ color: oklch(29.5% 0.137 282.6);
Tailwind
colors: {
  custom: {
    50: '#6c5798',
    500: '#28186d',
    950: '#000000',
  },
}
SCSS
$custom: #28186d;
$custom-light: #6c5798;
$custom-dark: #000000;
JSON
{
  "hex": "#28186d",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 251.294,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29513,
    "c": 0.13722,
    "h": 282.6
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#28186D
secondary
#90A33E
accent
#E741C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28186D

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

Preview Lab → · Contrast checker → · Palette generator →

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