#281850#281850

#281850 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.097 H 291.5°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#281850
RGBrgb(40, 24, 80)
HSLhsl(257, 54%, 20%)
HSVhsv(257, 70%, 31%)
CMYKcmyk(50%, 70%, 0%, 68.6%)
CIE-LABlab(13.73, 23.45, -31.71)
CIE-LCHlch(13.73, 39.44, 306.49°)
OKLaboklab(26.64% 0.0358 -0.0907)
OKLCHoklch(26.64% 0.097 291.5)
XYZxyz(2.6493, 1.6835, 7.7732)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281850 #405018
analogous
#182450 #281850 #441850
triadic
#281850 #502818 #185028
tetradic
#281850 #501824 #405018 #185044
square
#281850 #501824 #405018 #185044
split-complementary
#281850 #504418 #245018
monochromatic
#0C0718 #100A21 #281850 #40267F #5734AE

Accessibility & contrast

On white

15.71
#281850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281850
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281850#FFFFFF#000000##FFFFFF
##2818501.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#1C2531
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281850;
/* rgb */ color: rgb(40, 24, 80);
/* oklch */ color: oklch(26.6% 0.097 291.5);
Tailwind
colors: {
  custom: {
    50: '#665682',
    500: '#281850',
    950: '#000000',
  },
}
SCSS
$custom: #281850;
$custom-light: #665682;
$custom-dark: #000000;
JSON
{
  "hex": "#281850",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 257.143,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26636,
    "c": 0.09747,
    "h": 291.5
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#281850
secondary
#72873D
accent
#DD4BB3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281850

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

Preview Lab → · Contrast checker → · Palette generator →

#281850 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva