#28185E#28185E

#28185E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 286.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#28185E
RGBrgb(40, 24, 94)
HSLhsl(254, 59%, 23%)
HSVhsv(254, 74%, 37%)
CMYKcmyk(57.4%, 74.5%, 0%, 63.1%)
CIE-LABlab(15.02, 28.10, -39.06)
CIE-LCHlch(15.02, 48.12, 305.73°)
OKLaboklab(27.97% 0.0335 -0.1123)
OKLCHoklch(27.97% 0.117 286.6)
XYZxyz(3.2215, 1.9124, 10.7869)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28185E #4E5E18
analogous
#182B5E #28185E #4B185E
triadic
#28185E #5E2818 #185E28
tetradic
#28185E #5E182B #4E5E18 #185E4B
square
#28185E #5E182B #4E5E18 #185E4B
split-complementary
#28185E #5E4B18 #2B5E18
monochromatic
#0A0618 #130C2D #28185E #3D248F #5131C0

Accessibility & contrast

On white

15.19
#28185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#28185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28185E
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28185E#FFFFFF#000000##FFFFFF
##28185E1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#122A39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28185e;
/* rgb */ color: rgb(40, 24, 94);
/* oklch */ color: oklch(28.0% 0.117 286.6);
Tailwind
colors: {
  custom: {
    50: '#69568c',
    500: '#28185e',
    950: '#000000',
  },
}
SCSS
$custom: #28185e;
$custom-light: #69568c;
$custom-dark: #000000;
JSON
{
  "hex": "#28185e",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 253.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27966,
    "c": 0.11716,
    "h": 286.6
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#28185E
secondary
#81943D
accent
#E345BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28185E

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

Preview Lab → · Contrast checker → · Palette generator →

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