#28063B#28063B

#28063B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.096 H 309.8°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#28063B
RGBrgb(40, 6, 59)
HSLhsl(278, 82%, 13%)
HSVhsv(278, 90%, 23%)
CMYKcmyk(32.2%, 89.8%, 0%, 76.9%)
CIE-LABlab(8.10, 27.62, -26.12)
CIE-LCHlch(8.10, 38.01, 316.60°)
OKLaboklab(22.03% 0.0618 -0.0741)
OKLCHoklch(22.03% 0.096 309.8)
XYZxyz(1.7295, 0.8972, 4.2189)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28063B #193B06
analogous
#0E063B #28063B #3B0633
triadic
#28063B #3B2806 #063B28
tetradic
#28063B #3B0E06 #193B06 #06333B
square
#28063B #3B0E06 #193B06 #06333B
split-complementary
#28063B #333B06 #063B0E
monochromatic
#13031C #13031C #28063B #4E0C73 #7311AA

Accessibility & contrast

On white

17.81
#28063B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#28063B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28063B
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28063B#FFFFFF#000000##FFFFFF
##28063B1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163C
Deuteranopia (green-blind)
#00183A
Tritanopia (blue-blind)
#251320
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #28063b;
/* rgb */ color: rgb(40, 6, 59);
/* oklch */ color: oklch(22.0% 0.096 309.8);
Tailwind
colors: {
  custom: {
    50: '#654a71',
    500: '#28063b',
    950: '#000000',
  },
}
SCSS
$custom: #28063b;
$custom-light: #654a71;
$custom-dark: #000000;
JSON
{
  "hex": "#28063b",
  "rgb": {
    "r": 40,
    "g": 6,
    "b": 59
  },
  "hsl": {
    "h": 278.491,
    "s": 81.538,
    "l": 12.745
  },
  "oklch": {
    "l": 0.2203,
    "c": 0.09649,
    "h": 309.8
  },
  "luminance": 0.00897
}

Semantic roles & 50–950 ramp

primary
#28063B
secondary
#427B22
accent
#F83078
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060108
muted
#7A777B

Preview Lab

Preview with #28063B

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

Preview Lab → · Contrast checker → · Palette generator →

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