#28193D#28193D

#28193D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.3% C 0.067 H 300.9°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#28193D
RGBrgb(40, 25, 61)
HSLhsl(265, 42%, 17%)
HSVhsv(265, 59%, 24%)
CMYKcmyk(34.4%, 59%, 0%, 76.1%)
CIE-LABlab(12.50, 16.66, -20.47)
CIE-LCHlch(12.50, 26.40, 309.14°)
OKLaboklab(25.26% 0.0346 -0.0577)
OKLCHoklch(25.26% 0.067 300.9)
XYZxyz(2.0648, 1.4833, 4.5915)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28193D #2E3D19
analogous
#191C3D #28193D #3A193D
triadic
#28193D #3D2819 #193D28
tetradic
#28193D #3D191C #2E3D19 #193D3A
square
#28193D #3D191C #2E3D19 #193D3A
split-complementary
#28193D #3D3A19 #1C3D19
monochromatic
#0E0916 #0E0916 #28193D #442B68 #613D94

Accessibility & contrast

On white

16.20
#28193D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#28193D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28193D
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28193D#FFFFFF#000000##FFFFFF
##28193D1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D203E
Deuteranopia (green-blind)
#11203C
Tritanopia (blue-blind)
#242028
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28193d;
/* rgb */ color: rgb(40, 25, 61);
/* oklch */ color: oklch(25.3% 0.067 300.9);
Tailwind
colors: {
  custom: {
    50: '#635673',
    500: '#28193d',
    950: '#000000',
  },
}
SCSS
$custom: #28193d;
$custom-light: #635673;
$custom-dark: #000000;
JSON
{
  "hex": "#28193d",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 61
  },
  "hsl": {
    "h": 265,
    "s": 41.86,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25261,
    "c": 0.06724,
    "h": 300.9
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#28193D
secondary
#5D733F
accent
#D2569E
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050308
muted
#7A787B

Preview Lab

Preview with #28193D

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

Preview Lab → · Contrast checker → · Palette generator →

#28193D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva