#28133E#28133E

#28133E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.2% C 0.080 H 303.5°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#28133E
RGBrgb(40, 19, 62)
HSLhsl(269, 53%, 16%)
HSVhsv(269, 69%, 24%)
CMYKcmyk(35.5%, 69.4%, 0%, 75.7%)
CIE-LABlab(11.03, 21.02, -23.54)
CIE-LCHlch(11.03, 31.56, 311.76°)
OKLaboklab(24.2% 0.044 -0.0666)
OKLCHoklch(24.2% 0.08 303.5)
XYZxyz(1.9772, 1.2647, 4.6964)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28133E #293E13
analogous
#13133E #28133E #3D133E
triadic
#28133E #3E2813 #133E28
tetradic
#28133E #3E1313 #293E13 #133E3D
square
#28133E #3E1313 #293E13 #133E3D
split-complementary
#28133E #3E3D13 #133E13
monochromatic
#0F0717 #0F0717 #28133E #46216D #64309C

Accessibility & contrast

On white

16.76
#28133E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#28133E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28133E
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28133E#FFFFFF#000000##FFFFFF
##28133E1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#081D3D
Tritanopia (blue-blind)
#241C26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28133e;
/* rgb */ color: rgb(40, 19, 62);
/* oklch */ color: oklch(24.2% 0.080 303.5);
Tailwind
colors: {
  custom: {
    50: '#645273',
    500: '#28133e',
    950: '#000000',
  },
}
SCSS
$custom: #28133e;
$custom-light: #645273;
$custom-dark: #000000;
JSON
{
  "hex": "#28133e",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 62
  },
  "hsl": {
    "h": 269.302,
    "s": 53.086,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24199,
    "c": 0.07989,
    "h": 303.5
  },
  "luminance": 0.01265
}

Semantic roles & 50–950 ramp

primary
#28133E
secondary
#577736
accent
#DC4B96
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #28133E

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

Preview Lab → · Contrast checker → · Palette generator →

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