#28143F#28143F

#28143F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.080 H 302.3°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#28143F
RGBrgb(40, 20, 63)
HSLhsl(268, 52%, 16%)
HSVhsv(268, 68%, 25%)
CMYKcmyk(36.5%, 68.3%, 0%, 75.3%)
CIE-LABlab(11.35, 20.67, -23.74)
CIE-LCHlch(11.35, 31.48, 311.05°)
OKLaboklab(24.46% 0.0425 -0.0672)
OKLCHoklch(24.46% 0.08 302.3)
XYZxyz(2.0222, 1.3103, 4.8480)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28143F #2B3F14
analogous
#14163F #28143F #3E143F
triadic
#28143F #3F2814 #143F28
tetradic
#28143F #3F1416 #2B3F14 #143F3E
square
#28143F #3F1416 #2B3F14 #143F3E
split-complementary
#28143F #3F3E14 #163F14
monochromatic
#0F0717 #0F0717 #28143F #45236D #63319C

Accessibility & contrast

On white

16.64
#28143F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#28143F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28143F
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28143F#FFFFFF#000000##FFFFFF
##28143F1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E40
Deuteranopia (green-blind)
#081E3E
Tritanopia (blue-blind)
#231D27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28143f;
/* rgb */ color: rgb(40, 20, 63);
/* oklch */ color: oklch(24.5% 0.080 302.3);
Tailwind
colors: {
  custom: {
    50: '#645274',
    500: '#28143f',
    950: '#000000',
  },
}
SCSS
$custom: #28143f;
$custom-light: #645274;
$custom-dark: #000000;
JSON
{
  "hex": "#28143f",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 63
  },
  "hsl": {
    "h": 267.907,
    "s": 51.807,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24458,
    "c": 0.07953,
    "h": 302.3
  },
  "luminance": 0.0131
}

Semantic roles & 50–950 ramp

primary
#28143F
secondary
#5A7738
accent
#DB4D99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #28143F

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

Preview Lab → · Contrast checker → · Palette generator →

#28143F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva