#28135F#28135F

#28135F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.125 H 287.7°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#28135F
RGBrgb(40, 19, 95)
HSLhsl(257, 67%, 22%)
HSVhsv(257, 80%, 37%)
CMYKcmyk(57.9%, 80%, 0%, 62.7%)
CIE-LABlab(14.08, 31.36, -41.28)
CIE-LCHlch(14.08, 51.84, 307.22°)
OKLaboklab(27.33% 0.0379 -0.1187)
OKLCHoklch(27.33% 0.125 287.7)
XYZxyz(3.1729, 1.7429, 10.9935)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28135F #4A5F13
analogous
#13245F #28135F #4E135F
triadic
#28135F #5F2813 #135F28
tetradic
#28135F #5F1324 #4A5F13 #135F4E
square
#28135F #5F1324 #4A5F13 #135F4E
split-complementary
#28135F #5F4E13 #245F13
monochromatic
#0B051A #13092C #28135F #3D1D92 #5327C5

Accessibility & contrast

On white

15.57
#28135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#28135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28135F
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28135F#FFFFFF#000000##FFFFFF
##28135F1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#112838
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28135f;
/* rgb */ color: rgb(40, 19, 95);
/* oklch */ color: oklch(27.3% 0.125 287.7);
Tailwind
colors: {
  custom: {
    50: '#69538d',
    500: '#28135f',
    950: '#000000',
  },
}
SCSS
$custom: #28135f;
$custom-light: #69538d;
$custom-dark: #000000;
JSON
{
  "hex": "#28135f",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 256.579,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27327,
    "c": 0.12464,
    "h": 287.7
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#28135F
secondary
#7C9737
accent
#EA3EBA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28135F

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

Preview Lab → · Contrast checker → · Palette generator →

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