#281E56#281E56

#281E56 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.097 H 286.6°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#281E56
RGBrgb(40, 30, 86)
HSLhsl(251, 48%, 23%)
HSVhsv(251, 65%, 34%)
CMYKcmyk(53.5%, 65.1%, 0%, 66.3%)
CIE-LABlab(15.75, 21.47, -32.50)
CIE-LCHlch(15.75, 38.95, 303.45°)
OKLaboklab(28.27% 0.0278 -0.093)
OKLCHoklch(28.27% 0.097 286.6)
XYZxyz(3.0186, 2.0514, 9.0392)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E56 #4C561E
analogous
#1E3056 #281E56 #441E56
triadic
#281E56 #56281E #1E5628
tetradic
#281E56 #561E30 #4C561E #1E5644
square
#281E56 #561E30 #4C561E #1E5644
split-complementary
#281E56 #56441E #30561E
monochromatic
#0B0817 #130E29 #281E56 #3D2E83 #523EB1

Accessibility & contrast

On white

14.89
#281E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E56
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E56#FFFFFF#000000##FFFFFF
##281E561.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#182B36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281e56;
/* rgb */ color: rgb(40, 30, 86);
/* oklch */ color: oklch(28.3% 0.097 286.6);
Tailwind
colors: {
  custom: {
    50: '#665a86',
    500: '#281e56',
    950: '#000000',
  },
}
SCSS
$custom: #281e56;
$custom-light: #665a86;
$custom-dark: #000000;
JSON
{
  "hex": "#281e56",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 250.714,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28273,
    "c": 0.09704,
    "h": 286.6
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#281E56
secondary
#7E8B45
accent
#D850C0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281E56

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

Preview Lab → · Contrast checker → · Palette generator →

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