#28134A#28134A

#28134A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.097 H 296.3°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#28134A
RGBrgb(40, 19, 74)
HSLhsl(263, 59%, 18%)
HSVhsv(263, 74%, 29%)
CMYKcmyk(45.9%, 74.3%, 0%, 71%)
CIE-LABlab(12.03, 24.70, -30.34)
CIE-LCHlch(12.03, 39.12, 309.16°)
OKLaboklab(25.25% 0.0428 -0.0866)
OKLCHoklch(25.25% 0.097 296.3)
XYZxyz(2.3437, 1.4112, 6.6262)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28134A #354A13
analogous
#13194A #28134A #43134A
triadic
#28134A #4A2813 #134A28
tetradic
#28134A #4A1319 #354A13 #134A43
square
#28134A #4A1319 #354A13 #134A43
split-complementary
#28134A #4A4313 #194A13
monochromatic
#0D0618 #0E0619 #28134A #42207B #5D2CAB

Accessibility & contrast

On white

16.38
#28134A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#28134A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28134A
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28134A#FFFFFF#000000##FFFFFF
##28134A1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#1F202C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28134a;
/* rgb */ color: rgb(40, 19, 74);
/* oklch */ color: oklch(25.2% 0.097 296.3);
Tailwind
colors: {
  custom: {
    50: '#66527d',
    500: '#28134a',
    950: '#000000',
  },
}
SCSS
$custom: #28134a;
$custom-light: #66527d;
$custom-dark: #000000;
JSON
{
  "hex": "#28134a",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 74
  },
  "hsl": {
    "h": 262.909,
    "s": 59.14,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25245,
    "c": 0.09663,
    "h": 296.3
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#28134A
secondary
#658336
accent
#E245A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28134A

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

Preview Lab → · Contrast checker → · Palette generator →

#28134A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva