#281D58#281D58

#281D58 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.102 H 286.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#281D58
RGBrgb(40, 29, 88)
HSLhsl(251, 50%, 23%)
HSVhsv(251, 67%, 35%)
CMYKcmyk(54.5%, 67%, 0%, 65.5%)
CIE-LABlab(15.67, 22.84, -33.99)
CIE-LCHlch(15.67, 40.95, 303.90°)
OKLaboklab(28.26% 0.0289 -0.0974)
OKLCHoklch(28.26% 0.102 286.5)
XYZxyz(3.0754, 2.0343, 9.4612)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D58 #4D581D
analogous
#1D3058 #281D58 #451D58
triadic
#281D58 #58281D #1D5828
tetradic
#281D58 #581D30 #4D581D #1D5845
square
#281D58 #581D30 #4D581D #1D5845
split-complementary
#281D58 #58451D #30581D
monochromatic
#0A0817 #130E2A #281D58 #3D2C86 #523BB4

Accessibility & contrast

On white

14.93
#281D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D58
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D58#FFFFFF#000000##FFFFFF
##281D581.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#162B37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281d58;
/* rgb */ color: rgb(40, 29, 88);
/* oklch */ color: oklch(28.3% 0.102 286.5);
Tailwind
colors: {
  custom: {
    50: '#675988',
    500: '#281d58',
    950: '#000000',
  },
}
SCSS
$custom: #281d58;
$custom-light: #675988;
$custom-dark: #000000;
JSON
{
  "hex": "#281d58",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 88
  },
  "hsl": {
    "h": 251.186,
    "s": 50.427,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28261,
    "c": 0.10156,
    "h": 286.5
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#281D58
secondary
#808D44
accent
#DA4EC0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281D58

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

Preview Lab → · Contrast checker → · Palette generator →

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