#28123D#28123D

#28123D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.080 H 304.6°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#28123D
RGBrgb(40, 18, 61)
HSLhsl(271, 54%, 15%)
HSVhsv(271, 70%, 24%)
CMYKcmyk(34.4%, 70.5%, 0%, 76.1%)
CIE-LABlab(10.71, 21.37, -23.34)
CIE-LCHlch(10.71, 31.64, 312.47°)
OKLaboklab(23.94% 0.0456 -0.0661)
OKLCHoklch(23.94% 0.08 304.6)
XYZxyz(1.9335, 1.2207, 4.5477)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28123D #273D12
analogous
#13123D #28123D #3D123C
triadic
#28123D #3D2812 #123D28
tetradic
#28123D #3D1312 #273D12 #123C3D
square
#28123D #3D1312 #273D12 #123C3D
split-complementary
#28123D #3C3D12 #123D13
monochromatic
#0F0718 #0F0718 #28123D #47206C #662E9C

Accessibility & contrast

On white

16.88
#28123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28123D
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28123D#FFFFFF#000000##FFFFFF
##28123D1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#081D3C
Tritanopia (blue-blind)
#241B25
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #28123d;
/* rgb */ color: rgb(40, 18, 61);
/* oklch */ color: oklch(23.9% 0.080 304.6);
Tailwind
colors: {
  custom: {
    50: '#645173',
    500: '#28123d',
    950: '#000000',
  },
}
SCSS
$custom: #28123d;
$custom-light: #645173;
$custom-dark: #000000;
JSON
{
  "hex": "#28123d",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 270.698,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23944,
    "c": 0.08025,
    "h": 304.6
  },
  "luminance": 0.01221
}

Semantic roles & 50–950 ramp

primary
#28123D
secondary
#557635
accent
#DE4A92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #28123D

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

Preview Lab → · Contrast checker → · Palette generator →

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