#281E4F#281E4F

#281E4F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.086 H 288.9°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#281E4F
RGBrgb(40, 30, 79)
HSLhsl(252, 45%, 21%)
HSVhsv(252, 62%, 31%)
CMYKcmyk(49.4%, 62%, 0%, 69%)
CIE-LABlab(15.19, 19.06, -28.66)
CIE-LCHlch(15.19, 34.42, 303.62°)
OKLaboklab(27.68% 0.0279 -0.0817)
OKLCHoklch(27.68% 0.086 288.9)
XYZxyz(2.7502, 1.9441, 7.6260)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E4F #454F1E
analogous
#1E2D4F #281E4F #411E4F
triadic
#281E4F #4F281E #1E4F28
tetradic
#281E4F #4F1E2D #454F1E #1E4F41
square
#281E4F #4F1E2D #454F1E #1E4F41
split-complementary
#281E4F #4F411E #2D4F1E
monochromatic
#0B0816 #120D23 #281E4F #3E2F7B #5540A8

Accessibility & contrast

On white

15.12
#281E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E4F
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E4F#FFFFFF#000000##FFFFFF
##281E4F1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032751
Deuteranopia (green-blind)
#04254E
Tritanopia (blue-blind)
#1C2933
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281e4f;
/* rgb */ color: rgb(40, 30, 79);
/* oklch */ color: oklch(27.7% 0.086 288.9);
Tailwind
colors: {
  custom: {
    50: '#655a81',
    500: '#281e4f',
    950: '#000000',
  },
}
SCSS
$custom: #281e4f;
$custom-light: #655a81;
$custom-dark: #000000;
JSON
{
  "hex": "#281e4f",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 252.245,
    "s": 44.954,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27679,
    "c": 0.08634,
    "h": 288.9
  },
  "luminance": 0.01944
}

Semantic roles & 50–950 ramp

primary
#281E4F
secondary
#778445
accent
#D553BA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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