#281864#281864

#281864 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.125 H 284.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#281864
RGBrgb(40, 24, 100)
HSLhsl(253, 61%, 24%)
HSVhsv(253, 76%, 39%)
CMYKcmyk(60%, 76%, 0%, 60.8%)
CIE-LABlab(15.61, 30.10, -42.07)
CIE-LCHlch(15.61, 51.73, 305.58°)
OKLaboklab(28.57% 0.0322 -0.1211)
OKLCHoklch(28.57% 0.125 284.9)
XYZxyz(3.5013, 2.0243, 12.2604)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281864 #546418
analogous
#182E64 #281864 #4E1864
triadic
#281864 #642818 #186428
tetradic
#281864 #64182E #546418 #18644E
square
#281864 #64182E #546418 #18644E
split-complementary
#281864 #644E18 #2E6418
monochromatic
#0A0619 #140C33 #281864 #3C2495 #4F30C7

Accessibility & contrast

On white

14.95
#281864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281864
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281864#FFFFFF#000000##FFFFFF
##2818641.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#0A2C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281864;
/* rgb */ color: rgb(40, 24, 100);
/* oklch */ color: oklch(28.6% 0.125 284.9);
Tailwind
colors: {
  custom: {
    50: '#6a5691',
    500: '#281864',
    950: '#000000',
  },
}
SCSS
$custom: #281864;
$custom-light: #6a5691;
$custom-dark: #000000;
JSON
{
  "hex": "#281864",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 252.632,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28571,
    "c": 0.1253,
    "h": 284.9
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#281864
secondary
#879A3E
accent
#E443C3
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281864

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

Preview Lab → · Contrast checker → · Palette generator →

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