#28133B#28133B

#28133B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.076 H 305.7°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#28133B
RGBrgb(40, 19, 59)
HSLhsl(272, 51%, 15%)
HSVhsv(272, 68%, 23%)
CMYKcmyk(32.2%, 67.8%, 0%, 76.9%)
CIE-LABlab(10.80, 20.13, -21.78)
CIE-LCHlch(10.80, 29.66, 312.76°)
OKLaboklab(23.96% 0.0441 -0.0615)
OKLCHoklch(23.96% 0.076 305.7)
XYZxyz(1.8972, 1.2326, 4.2748)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28133B #263B13
analogous
#14133B #28133B #3B133A
triadic
#28133B #3B2813 #133B28
tetradic
#28133B #3B1413 #263B13 #133A3B
square
#28133B #3B1413 #263B13 #133A3B
split-complementary
#28133B #3A3B13 #133B14
monochromatic
#100717 #100717 #28133B #472269 #673198

Accessibility & contrast

On white

16.85
#28133B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28133B
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28133B#FFFFFF#000000##FFFFFF
##28133B1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3C
Deuteranopia (green-blind)
#0B1D3A
Tritanopia (blue-blind)
#251B24
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #28133b;
/* rgb */ color: rgb(40, 19, 59);
/* oklch */ color: oklch(24.0% 0.076 305.7);
Tailwind
colors: {
  custom: {
    50: '#645271',
    500: '#28133b',
    950: '#000000',
  },
}
SCSS
$custom: #28133b;
$custom-light: #645271;
$custom-dark: #000000;
JSON
{
  "hex": "#28133b",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 59
  },
  "hsl": {
    "h": 271.5,
    "s": 51.282,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23958,
    "c": 0.07565,
    "h": 305.7
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#28133B
secondary
#537336
accent
#DB4D90
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28133B

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

Preview Lab → · Contrast checker → · Palette generator →

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