#281E45#281E45

#281E45 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.9% C 0.071 H 292.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#281E45
RGBrgb(40, 30, 69)
HSLhsl(255, 39%, 19%)
HSVhsv(255, 57%, 27%)
CMYKcmyk(42%, 56.5%, 0%, 72.9%)
CIE-LABlab(14.45, 15.69, -22.97)
CIE-LCHlch(14.45, 27.82, 304.35°)
OKLaboklab(26.89% 0.0274 -0.065)
OKLCHoklch(26.89% 0.071 292.9)
XYZxyz(2.4132, 1.8093, 5.8511)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E45 #3B451E
analogous
#1E2845 #281E45 #3C1E45
triadic
#281E45 #45281E #1E4528
tetradic
#281E45 #451E28 #3B451E #1E453C
square
#281E45 #451E28 #3B451E #1E453C
split-complementary
#281E45 #453C1E #28451E
monochromatic
#0C0915 #0F0B1A #281E45 #413170 #59439A

Accessibility & contrast

On white

15.42
#281E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E45
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E45#FFFFFF#000000##FFFFFF
##281E451.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2546
Deuteranopia (green-blind)
#112444
Tritanopia (blue-blind)
#21262E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281e45;
/* rgb */ color: rgb(40, 30, 69);
/* oklch */ color: oklch(26.9% 0.071 292.9);
Tailwind
colors: {
  custom: {
    50: '#645a79',
    500: '#281e45',
    950: '#000000',
  },
}
SCSS
$custom: #281e45;
$custom-light: #645a79;
$custom-dark: #000000;
JSON
{
  "hex": "#281e45",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 255.385,
    "s": 39.394,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26894,
    "c": 0.07052,
    "h": 292.9
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#281E45
secondary
#6C7A45
accent
#CF59B1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #281E45

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

Preview Lab → · Contrast checker → · Palette generator →

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