#281C5D#281C5D

#281C5D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.110 H 285.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#281C5D
RGBrgb(40, 28, 93)
HSLhsl(251, 54%, 24%)
HSVhsv(251, 70%, 36%)
CMYKcmyk(57%, 69.9%, 0%, 63.5%)
CIE-LABlab(15.86, 25.22, -37.02)
CIE-LCHlch(15.86, 44.80, 304.26°)
OKLaboklab(28.54% 0.0295 -0.1063)
OKLCHoklch(28.54% 0.11 285.5)
XYZxyz(3.2655, 2.0718, 10.5816)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C5D #515D1C
analogous
#1C305D #281C5D #481C5D
triadic
#281C5D #5D281C #1C5D28
tetradic
#281C5D #5D1C30 #515D1C #1C5D48
square
#281C5D #5D1C30 #515D1C #1C5D48
split-complementary
#281C5D #5D481C #305D1C
monochromatic
#0A0718 #140E2E #281C5D #3C2A8C #5038BB

Accessibility & contrast

On white

14.85
#281C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C5D
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C5D#FFFFFF#000000##FFFFFF
##281C5D1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#122C39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281c5d;
/* rgb */ color: rgb(40, 28, 93);
/* oklch */ color: oklch(28.5% 0.110 285.5);
Tailwind
colors: {
  custom: {
    50: '#68598c',
    500: '#281c5d',
    950: '#000000',
  },
}
SCSS
$custom: #281c5d;
$custom-light: #68598c;
$custom-dark: #000000;
JSON
{
  "hex": "#281c5d",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 251.077,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2854,
    "c": 0.11031,
    "h": 285.5
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#281C5D
secondary
#849242
accent
#DD4BC2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #281C5D

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

Preview Lab → · Contrast checker → · Palette generator →

#281C5D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva