#281E50#281E50

#281E50 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.088 H 288.5°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#281E50
RGBrgb(40, 30, 80)
HSLhsl(252, 45%, 22%)
HSVhsv(252, 63%, 31%)
CMYKcmyk(50%, 62.5%, 0%, 68.6%)
CIE-LABlab(15.27, 19.40, -29.22)
CIE-LCHlch(15.27, 35.07, 303.58°)
OKLaboklab(27.76% 0.0279 -0.0833)
OKLCHoklch(27.76% 0.088 288.5)
XYZxyz(2.7869, 1.9587, 7.8191)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E50 #46501E
analogous
#1E2D50 #281E50 #411E50
triadic
#281E50 #50281E #1E5028
tetradic
#281E50 #501E2D #46501E #1E5041
square
#281E50 #501E2D #46501E #1E5041
split-complementary
#281E50 #50411E #2D501E
monochromatic
#0B0816 #120D23 #281E50 #3E2F7D #553FA9

Accessibility & contrast

On white

15.09
#281E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E50
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E50#FFFFFF#000000##FFFFFF
##281E501.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022752
Deuteranopia (green-blind)
#02254F
Tritanopia (blue-blind)
#1C2933
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281e50;
/* rgb */ color: rgb(40, 30, 80);
/* oklch */ color: oklch(27.8% 0.088 288.5);
Tailwind
colors: {
  custom: {
    50: '#655a81',
    500: '#281e50',
    950: '#000000',
  },
}
SCSS
$custom: #281e50;
$custom-light: #655a81;
$custom-dark: #000000;
JSON
{
  "hex": "#281e50",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 80
  },
  "hsl": {
    "h": 252,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27762,
    "c": 0.08789,
    "h": 288.5
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#281E50
secondary
#788545
accent
#D553BB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281E50

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

Preview Lab → · Contrast checker → · Palette generator →

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