#281872#281872

#281872 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.144 H 281.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#281872
RGBrgb(40, 24, 114)
HSLhsl(251, 65%, 27%)
HSVhsv(251, 79%, 45%)
CMYKcmyk(64.9%, 78.9%, 0%, 55.3%)
CIE-LABlab(17.08, 34.72, -48.81)
CIE-LCHlch(17.08, 59.90, 305.42°)
OKLaboklab(30.05% 0.0287 -0.1408)
OKLCHoklch(30.05% 0.144 281.5)
XYZxyz(4.2380, 2.3190, 16.1406)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281872 #627218
analogous
#183572 #281872 #551872
triadic
#281872 #722818 #187228
tetradic
#281872 #721835 #627218 #187255
square
#281872 #721835 #627218 #187255
split-complementary
#281872 #725518 #357218
monochromatic
#090519 #160D3F #281872 #3A23A5 #4E31D4

Accessibility & contrast

On white

14.35
#281872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281872
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281872#FFFFFF#000000##FFFFFF
##2818721.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281872;
/* rgb */ color: rgb(40, 24, 114);
/* oklch */ color: oklch(30.1% 0.144 281.5);
Tailwind
colors: {
  custom: {
    50: '#6d579c',
    500: '#281872',
    950: '#000000',
  },
}
SCSS
$custom: #281872;
$custom-light: #6d579c;
$custom-dark: #000000;
JSON
{
  "hex": "#281872",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 250.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30051,
    "c": 0.1437,
    "h": 281.5
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#281872
secondary
#95A73E
accent
#E840CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281872

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

Preview Lab → · Contrast checker → · Palette generator →

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