#281545#281545

#281545 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.086 H 298.1°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#281545
RGBrgb(40, 21, 69)
HSLhsl(264, 53%, 18%)
HSVhsv(264, 70%, 27%)
CMYKcmyk(42%, 69.6%, 0%, 72.9%)
CIE-LABlab(12.07, 21.87, -26.79)
CIE-LCHlch(12.07, 34.58, 309.22°)
OKLaboklab(25.14% 0.0408 -0.0762)
OKLCHoklch(25.14% 0.086 298.1)
XYZxyz(2.2171, 1.4171, 5.7858)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281545 #324515
analogous
#151A45 #281545 #401545
triadic
#281545 #452815 #154528
tetradic
#281545 #45151A #324515 #154540
square
#281545 #45151A #324515 #154540
split-complementary
#281545 #454015 #1A4515
monochromatic
#0E0717 #0E0717 #281545 #432374 #5E32A3

Accessibility & contrast

On white

16.36
#281545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#281545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281545
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281545#FFFFFF#000000##FFFFFF
##2815451.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#021F44
Tritanopia (blue-blind)
#21202A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281545;
/* rgb */ color: rgb(40, 21, 69);
/* oklch */ color: oklch(25.1% 0.086 298.1);
Tailwind
colors: {
  custom: {
    50: '#655379',
    500: '#281545',
    950: '#000000',
  },
}
SCSS
$custom: #281545;
$custom-light: #655379;
$custom-dark: #000000;
JSON
{
  "hex": "#281545",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 263.75,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25138,
    "c": 0.08643,
    "h": 298.1
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#281545
secondary
#627D39
accent
#DD4BA3
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #281545

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

Preview Lab → · Contrast checker → · Palette generator →

#281545 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva