#281158#281158

#281158 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.118 H 290.7°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#281158
RGBrgb(40, 17, 88)
HSLhsl(259, 68%, 21%)
HSVhsv(259, 81%, 35%)
CMYKcmyk(54.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(12.96, 30.25, -38.40)
CIE-LCHlch(12.96, 48.88, 308.23°)
OKLaboklab(26.32% 0.0418 -0.1103)
OKLCHoklch(26.32% 0.118 290.7)
XYZxyz(2.8365, 1.5565, 9.3816)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281158 #415811
analogous
#111D58 #281158 #4B1158
triadic
#281158 #582811 #115828
tetradic
#281158 #58111D #415811 #11584B
square
#281158 #58111D #415811 #11584B
split-complementary
#281158 #584B11 #1D5811
monochromatic
#0C051A #110725 #281158 #3F1B8B #5725BF

Accessibility & contrast

On white

16.01
#281158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281158
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281158#FFFFFF#000000##FFFFFF
##2811581.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#172433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281158;
/* rgb */ color: rgb(40, 17, 88);
/* oklch */ color: oklch(26.3% 0.118 290.7);
Tailwind
colors: {
  custom: {
    50: '#685288',
    500: '#281158',
    950: '#000000',
  },
}
SCSS
$custom: #281158;
$custom-light: #685288;
$custom-dark: #000000;
JSON
{
  "hex": "#281158",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 259.437,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26323,
    "c": 0.11793,
    "h": 290.7
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#281158
secondary
#739134
accent
#EA3DB2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #281158

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

Preview Lab → · Contrast checker → · Palette generator →

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