#28053F#28053F

#28053F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.102 H 307.1°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#28053F
RGBrgb(40, 5, 63)
HSLhsl(276, 85%, 13%)
HSVhsv(276, 92%, 25%)
CMYKcmyk(36.5%, 92.1%, 0%, 75.3%)
CIE-LABlab(8.29, 29.21, -28.68)
CIE-LCHlch(8.29, 40.93, 315.52°)
OKLaboklab(22.28% 0.0618 -0.0816)
OKLCHoklch(22.28% 0.102 307.1)
XYZxyz(1.8264, 0.9186, 4.7827)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28053F #1C3F05
analogous
#0B053F #28053F #3F0539
triadic
#28053F #3F2805 #053F28
tetradic
#28053F #3F0B05 #1C3F05 #05393F
square
#28053F #3F0B05 #1C3F05 #05393F
split-complementary
#28053F #393F05 #053F0B
monochromatic
#12021C #12021C #28053F #4C0978 #700EB0

Accessibility & contrast

On white

17.74
#28053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#28053F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28053F
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28053F#FFFFFF#000000##FFFFFF
##28053F1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#241422
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #28053f;
/* rgb */ color: rgb(40, 5, 63);
/* oklch */ color: oklch(22.3% 0.102 307.1);
Tailwind
colors: {
  custom: {
    50: '#654a75',
    500: '#28053f',
    950: '#000000',
  },
}
SCSS
$custom: #28053f;
$custom-light: #654a75;
$custom-dark: #000000;
JSON
{
  "hex": "#28053f",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 276.207,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22281,
    "c": 0.10241,
    "h": 307.1
  },
  "luminance": 0.00919
}

Semantic roles & 50–950 ramp

primary
#28053F
secondary
#468020
accent
#FC2C7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #28053F

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

Preview Lab → · Contrast checker → · Palette generator →

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