#281157#281157

#281157 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.117 H 291.1°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#281157
RGBrgb(40, 17, 87)
HSLhsl(260, 67%, 20%)
HSVhsv(260, 80%, 34%)
CMYKcmyk(54%, 80.5%, 0%, 65.9%)
CIE-LABlab(12.86, 29.94, -37.89)
CIE-LCHlch(12.86, 48.29, 308.31°)
OKLaboklab(26.22% 0.042 -0.1088)
OKLCHoklch(26.22% 0.117 291.1)
XYZxyz(2.7953, 1.5400, 9.1649)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281157 #405711
analogous
#111D57 #281157 #4B1157
triadic
#281157 #572811 #115728
tetradic
#281157 #57111D #405711 #11574B
square
#281157 #57111D #405711 #11574B
split-complementary
#281157 #574B11 #1D5711
monochromatic
#0C051A #100724 #281157 #401B8A #5725BD

Accessibility & contrast

On white

16.06
#281157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281157
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281157#FFFFFF#000000##FFFFFF
##2811571.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#182433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281157;
/* rgb */ color: rgb(40, 17, 87);
/* oklch */ color: oklch(26.2% 0.117 291.1);
Tailwind
colors: {
  custom: {
    50: '#685287',
    500: '#281157',
    950: '#000000',
  },
}
SCSS
$custom: #281157;
$custom-light: #685287;
$custom-dark: #000000;
JSON
{
  "hex": "#281157",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 259.714,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2622,
    "c": 0.11664,
    "h": 291.1
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#281157
secondary
#729034
accent
#EA3EB1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #281157

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

Preview Lab → · Contrast checker → · Palette generator →

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