#28154B#28154B

#28154B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.095 H 295.0°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#28154B
RGBrgb(40, 21, 75)
HSLhsl(261, 56%, 19%)
HSVhsv(261, 72%, 29%)
CMYKcmyk(46.7%, 72%, 0%, 70.6%)
CIE-LABlab(12.58, 23.77, -30.14)
CIE-LCHlch(12.58, 38.38, 308.25°)
OKLaboklab(25.67% 0.0402 -0.0861)
OKLCHoklch(25.67% 0.095 295)
XYZxyz(2.4129, 1.4954, 6.8168)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28154B #384B15
analogous
#151D4B #28154B #43154B
triadic
#28154B #4B2815 #154B28
tetradic
#28154B #4B151D #384B15 #154B43
square
#28154B #4B151D #384B15 #154B43
split-complementary
#28154B #4B4315 #1D4B15
monochromatic
#0D0718 #0F081B #28154B #42227B #5B30AB

Accessibility & contrast

On white

16.17
#28154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#28154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28154B
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28154B#FFFFFF#000000##FFFFFF
##28154B1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#1F222D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28154b;
/* rgb */ color: rgb(40, 21, 75);
/* oklch */ color: oklch(25.7% 0.095 295.0);
Tailwind
colors: {
  custom: {
    50: '#65537e',
    500: '#28154b',
    950: '#000000',
  },
}
SCSS
$custom: #28154b;
$custom-light: #65537e;
$custom-dark: #000000;
JSON
{
  "hex": "#28154b",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 261.111,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25666,
    "c": 0.09497,
    "h": 295
  },
  "luminance": 0.01495
}

Semantic roles & 50–950 ramp

primary
#28154B
secondary
#698339
accent
#E048AA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28154B

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

Preview Lab → · Contrast checker → · Palette generator →

#28154B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva