#28193E#28193E

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

Color values

HEX#28193E
RGBrgb(40, 25, 62)
HSLhsl(264, 43%, 17%)
HSVhsv(264, 60%, 24%)
CMYKcmyk(35.5%, 59.7%, 0%, 75.7%)
CIE-LABlab(12.57, 16.97, -21.07)
CIE-LCHlch(12.57, 27.05, 308.85°)
OKLaboklab(25.34% 0.0347 -0.0594)
OKLCHoklch(25.34% 0.069 300.3)
XYZxyz(2.0920, 1.4942, 4.7347)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28193E #2F3E19
analogous
#191D3E #28193E #3B193E
triadic
#28193E #3E2819 #193E28
tetradic
#28193E #3E191D #2F3E19 #193E3B
square
#28193E #3E191D #2F3E19 #193E3B
split-complementary
#28193E #3E3B19 #1D3E19
monochromatic
#0E0916 #0E0916 #28193E #442B6A #603C95

Accessibility & contrast

On white

16.17
#28193E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28193E
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28193E#FFFFFF#000000##FFFFFF
##28193E1.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)
#0C213F
Deuteranopia (green-blind)
#10203D
Tritanopia (blue-blind)
#242028
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28193e;
/* rgb */ color: rgb(40, 25, 62);
/* oklch */ color: oklch(25.3% 0.069 300.3);
Tailwind
colors: {
  custom: {
    50: '#635673',
    500: '#28193e',
    950: '#000000',
  },
}
SCSS
$custom: #28193e;
$custom-light: #635673;
$custom-dark: #000000;
JSON
{
  "hex": "#28193e",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 62
  },
  "hsl": {
    "h": 264.324,
    "s": 42.529,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25335,
    "c": 0.06879,
    "h": 300.3
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#28193E
secondary
#5E743F
accent
#D255A0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #28193E

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

Preview Lab → · Contrast checker → · Palette generator →

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