#281867#281867

#281867 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.129 H 284.1°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#281867
RGBrgb(40, 24, 103)
HSLhsl(252, 62%, 25%)
HSVhsv(252, 77%, 40%)
CMYKcmyk(61.2%, 76.7%, 0%, 59.6%)
CIE-LABlab(15.92, 31.09, -43.55)
CIE-LCHlch(15.92, 53.51, 305.53°)
OKLaboklab(28.88% 0.0315 -0.1254)
OKLCHoklch(28.88% 0.129 284.1)
XYZxyz(3.6491, 2.0834, 13.0392)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281867 #576718
analogous
#182F67 #281867 #501867
triadic
#281867 #672818 #186728
tetradic
#281867 #67182F #576718 #186750
square
#281867 #67182F #576718 #186750
split-complementary
#281867 #675018 #2F6718
monochromatic
#0A0619 #150C35 #281867 #3B2499 #4F2FCA

Accessibility & contrast

On white

14.82
#281867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281867
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281867#FFFFFF#000000##FFFFFF
##2818671.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#062E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281867;
/* rgb */ color: rgb(40, 24, 103);
/* oklch */ color: oklch(28.9% 0.129 284.1);
Tailwind
colors: {
  custom: {
    50: '#6a5793',
    500: '#281867',
    950: '#000000',
  },
}
SCSS
$custom: #281867;
$custom-light: #6a5793;
$custom-dark: #000000;
JSON
{
  "hex": "#281867",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 252.152,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28881,
    "c": 0.12932,
    "h": 284.1
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#281867
secondary
#8A9D3E
accent
#E543C4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281867

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

Preview Lab → · Contrast checker → · Palette generator →

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