#28203C#28203C

#28203C is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.7% C 0.052 H 295.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#28203C
RGBrgb(40, 32, 60)
HSLhsl(257, 30%, 18%)
HSVhsv(257, 47%, 24%)
CMYKcmyk(33.3%, 46.7%, 0%, 76.5%)
CIE-LABlab(14.46, 11.36, -16.67)
CIE-LCHlch(14.46, 20.17, 304.27°)
OKLaboklab(26.71% 0.0226 -0.0466)
OKLCHoklch(26.71% 0.052 295.9)
XYZxyz(2.2070, 1.8104, 4.5072)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28203C #343C20
analogous
#20263C #28203C #36203C
triadic
#28203C #3C2820 #203C28
tetradic
#28203C #3C2026 #343C20 #203C36
square
#28203C #3C2026 #343C20 #203C36
split-complementary
#28203C #3C3620 #263C20
monochromatic
#0D0B14 #0D0B14 #28203C #433564 #5D4B8C

Accessibility & contrast

On white

15.42
#28203C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#28203C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28203C
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28203C#FFFFFF#000000##FFFFFF
##28203C1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18253D
Deuteranopia (green-blind)
#19243B
Tritanopia (blue-blind)
#24252B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28203c;
/* rgb */ color: rgb(40, 32, 60);
/* oklch */ color: oklch(26.7% 0.052 295.9);
Tailwind
colors: {
  custom: {
    50: '#635b72',
    500: '#28203c',
    950: '#000000',
  },
}
SCSS
$custom: #28203c;
$custom-light: #635b72;
$custom-dark: #000000;
JSON
{
  "hex": "#28203c",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 60
  },
  "hsl": {
    "h": 257.143,
    "s": 30.435,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26709,
    "c": 0.05178,
    "h": 295.9
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#28203C
secondary
#646F48
accent
#C761AA
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050408
muted
#79797B

Preview Lab

Preview with #28203C

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

Preview Lab → · Contrast checker → · Palette generator →

#28203C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva