#281E53#281E53

#281E53 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.092 H 287.5°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#281E53
RGBrgb(40, 30, 83)
HSLhsl(251, 47%, 22%)
HSVhsv(251, 64%, 33%)
CMYKcmyk(51.8%, 63.9%, 0%, 67.5%)
CIE-LABlab(15.51, 20.43, -30.87)
CIE-LCHlch(15.51, 37.02, 303.50°)
OKLaboklab(28.01% 0.0279 -0.0882)
OKLCHoklch(28.01% 0.093 287.5)
XYZxyz(2.9002, 2.0041, 8.4159)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E53 #49531E
analogous
#1E2E53 #281E53 #431E53
triadic
#281E53 #53281E #1E5328
tetradic
#281E53 #531E2E #49531E #1E5343
square
#281E53 #531E2E #49531E #1E5343
split-complementary
#281E53 #53431E #2E531E
monochromatic
#0B0816 #120E26 #281E53 #3E2E80 #533EAD

Accessibility & contrast

On white

14.99
#281E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E53
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E53#FFFFFF#000000##FFFFFF
##281E531.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#1A2A35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281e53;
/* rgb */ color: rgb(40, 30, 83);
/* oklch */ color: oklch(28.0% 0.092 287.5);
Tailwind
colors: {
  custom: {
    50: '#665a84',
    500: '#281e53',
    950: '#000000',
  },
}
SCSS
$custom: #281e53;
$custom-light: #665a84;
$custom-dark: #000000;
JSON
{
  "hex": "#281e53",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 251.321,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28014,
    "c": 0.0925,
    "h": 287.5
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#281E53
secondary
#7B8845
accent
#D751BD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281E53

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

Preview Lab → · Contrast checker → · Palette generator →

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