#28123A#28123A

#28123A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.076 H 306.9°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#28123A
RGBrgb(40, 18, 58)
HSLhsl(273, 53%, 15%)
HSVhsv(273, 69%, 23%)
CMYKcmyk(31%, 69%, 0%, 77.3%)
CIE-LABlab(10.48, 20.49, -21.57)
CIE-LCHlch(10.48, 29.75, 313.53°)
OKLaboklab(23.7% 0.0457 -0.0609)
OKLCHoklch(23.7% 0.076 306.9)
XYZxyz(1.8549, 1.1892, 4.1340)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28123A #243A12
analogous
#14123A #28123A #3A1238
triadic
#28123A #3A2812 #123A28
tetradic
#28123A #3A1412 #243A12 #12383A
square
#28123A #3A1412 #243A12 #12383A
split-complementary
#28123A #383A12 #123A14
monochromatic
#100717 #100717 #28123A #482069 #682F97

Accessibility & contrast

On white

16.97
#28123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#28123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28123A
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28123A#FFFFFF#000000##FFFFFF
##28123A1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#0B1D39
Tritanopia (blue-blind)
#251A23
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28123a;
/* rgb */ color: rgb(40, 18, 58);
/* oklch */ color: oklch(23.7% 0.076 306.9);
Tailwind
colors: {
  custom: {
    50: '#645170',
    500: '#28123a',
    950: '#000000',
  },
}
SCSS
$custom: #28123a;
$custom-light: #645170;
$custom-dark: #000000;
JSON
{
  "hex": "#28123a",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 273,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23701,
    "c": 0.07608,
    "h": 306.9
  },
  "luminance": 0.01189
}

Semantic roles & 50–950 ramp

primary
#28123A
secondary
#517335
accent
#DC4C8D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28123A

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

Preview Lab → · Contrast checker → · Palette generator →

#28123A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva