#281E54#281E54

#281E54 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.094 H 287.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#281E54
RGBrgb(40, 30, 84)
HSLhsl(251, 47%, 22%)
HSVhsv(251, 64%, 33%)
CMYKcmyk(52.4%, 64.3%, 0%, 67.1%)
CIE-LABlab(15.59, 20.78, -31.41)
CIE-LCHlch(15.59, 37.66, 303.48°)
OKLaboklab(28.1% 0.0279 -0.0898)
OKLCHoklch(28.1% 0.094 287.2)
XYZxyz(2.9391, 2.0196, 8.6207)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E54 #4A541E
analogous
#1E2F54 #281E54 #431E54
triadic
#281E54 #54281E #1E5428
tetradic
#281E54 #541E2F #4A541E #1E5443
square
#281E54 #541E2F #4A541E #1E5443
split-complementary
#281E54 #54431E #2F541E
monochromatic
#0B0817 #130E27 #281E54 #3D2E81 #533EAE

Accessibility & contrast

On white

14.96
#281E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E54
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E54#FFFFFF#000000##FFFFFF
##281E541.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#192A35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281e54;
/* rgb */ color: rgb(40, 30, 84);
/* oklch */ color: oklch(28.1% 0.094 287.2);
Tailwind
colors: {
  custom: {
    50: '#665a85',
    500: '#281e54',
    950: '#000000',
  },
}
SCSS
$custom: #281e54;
$custom-light: #665a85;
$custom-dark: #000000;
JSON
{
  "hex": "#281e54",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 251.111,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.281,
    "c": 0.09402,
    "h": 287.2
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#281E54
secondary
#7C8945
accent
#D751BE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281E54

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

Preview Lab → · Contrast checker → · Palette generator →

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