#281D5E#281D5E

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

Color values

HEX#281D5E
RGBrgb(40, 29, 94)
HSLhsl(250, 53%, 24%)
HSVhsv(250, 69%, 37%)
CMYKcmyk(57.4%, 69.1%, 0%, 63.1%)
CIE-LABlab(16.19, 24.91, -37.14)
CIE-LCHlch(16.19, 44.72, 303.85°)
OKLaboklab(28.81% 0.0283 -0.1066)
OKLCHoklch(28.81% 0.11 284.9)
XYZxyz(3.3342, 2.1378, 10.8245)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D5E #535E1D
analogous
#1D335E #281D5E #491D5E
triadic
#281D5E #5E281D #1D5E28
tetradic
#281D5E #5E1D33 #535E1D #1D5E49
square
#281D5E #5E1D33 #535E1D #1D5E49
split-complementary
#281D5E #5E491D #335E1D
monochromatic
#0A0717 #140F2F #281D5E #3C2B8D #503ABC

Accessibility & contrast

On white

14.71
#281D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281D5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D5E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D5E#FFFFFF#000000##FFFFFF
##281D5E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#112D3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281d5e;
/* rgb */ color: rgb(40, 29, 94);
/* oklch */ color: oklch(28.8% 0.110 284.9);
Tailwind
colors: {
  custom: {
    50: '#68598c',
    500: '#281d5e',
    950: '#000000',
  },
}
SCSS
$custom: #281d5e;
$custom-light: #68598c;
$custom-dark: #000000;
JSON
{
  "hex": "#281d5e",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 250.154,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28811,
    "c": 0.11033,
    "h": 284.9
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#281D5E
secondary
#869344
accent
#DC4CC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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