#28186F#28186F

#28186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.140 H 282.2°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#28186F
RGBrgb(40, 24, 111)
HSLhsl(251, 64%, 26%)
HSVhsv(251, 78%, 44%)
CMYKcmyk(64%, 78.4%, 0%, 56.5%)
CIE-LABlab(16.76, 33.73, -47.40)
CIE-LCHlch(16.76, 58.18, 305.44°)
OKLaboklab(29.73% 0.0295 -0.1367)
OKLCHoklch(29.73% 0.14 282.2)
XYZxyz(4.0701, 2.2518, 15.2560)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28186F #5F6F18
analogous
#18346F #28186F #54186F
triadic
#28186F #6F2818 #186F28
tetradic
#28186F #6F1834 #5F6F18 #186F54
square
#28186F #6F1834 #5F6F18 #186F54
split-complementary
#28186F #6F5418 #346F18
monochromatic
#090519 #160D3D #28186F #3A23A1 #4D2FD2

Accessibility & contrast

On white

14.48
#28186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#28186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28186F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28186F#FFFFFF#000000##FFFFFF
##28186F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28186f;
/* rgb */ color: rgb(40, 24, 111);
/* oklch */ color: oklch(29.7% 0.140 282.2);
Tailwind
colors: {
  custom: {
    50: '#6c5799',
    500: '#28186f',
    950: '#000000',
  },
}
SCSS
$custom: #28186f;
$custom-light: #6c5799;
$custom-dark: #000000;
JSON
{
  "hex": "#28186f",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 251.034,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29727,
    "c": 0.13982,
    "h": 282.2
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#28186F
secondary
#92A53E
accent
#E740C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28186F

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

Preview Lab → · Contrast checker → · Palette generator →

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