#281237#281237

#281237 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.5% C 0.072 H 309.4°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#281237
RGBrgb(40, 18, 55)
HSLhsl(276, 51%, 14%)
HSVhsv(276, 67%, 22%)
CMYKcmyk(27.3%, 67.3%, 0%, 78.4%)
CIE-LABlab(10.26, 19.63, -19.77)
CIE-LCHlch(10.26, 27.86, 314.80°)
OKLaboklab(23.47% 0.0456 -0.0556)
OKLCHoklch(23.47% 0.072 309.4)
XYZxyz(1.7808, 1.1596, 3.7437)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281237 #213712
analogous
#161237 #281237 #371234
triadic
#281237 #372812 #123728
tetradic
#281237 #371612 #213712 #123437
square
#281237 #371612 #213712 #123437
split-complementary
#281237 #343712 #123716
monochromatic
#110817 #110817 #281237 #4A2165 #6B3093

Accessibility & contrast

On white

17.05
#281237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#281237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281237
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281237#FFFFFF#000000##FFFFFF
##2812371.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061B38
Deuteranopia (green-blind)
#0E1C36
Tritanopia (blue-blind)
#261922
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #281237;
/* rgb */ color: rgb(40, 18, 55);
/* oklch */ color: oklch(23.5% 0.072 309.4);
Tailwind
colors: {
  custom: {
    50: '#63516e',
    500: '#281237',
    950: '#000000',
  },
}
SCSS
$custom: #281237;
$custom-light: #63516e;
$custom-dark: #000000;
JSON
{
  "hex": "#281237",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 275.676,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23468,
    "c": 0.07189,
    "h": 309.4
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#281237
secondary
#4D7035
accent
#DA4E87
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #281237

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

Preview Lab → · Contrast checker → · Palette generator →

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