#281767#281767

#281767 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.130 H 284.4°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#281767
RGBrgb(40, 23, 103)
HSLhsl(253, 63%, 25%)
HSVhsv(253, 78%, 40%)
CMYKcmyk(61.2%, 77.7%, 0%, 59.6%)
CIE-LABlab(15.71, 31.68, -43.89)
CIE-LCHlch(15.71, 54.13, 305.82°)
OKLaboklab(28.73% 0.0324 -0.1264)
OKLCHoklch(28.73% 0.13 284.4)
XYZxyz(3.6289, 2.0430, 13.0324)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281767 #566717
analogous
#172E67 #281767 #501767
triadic
#281767 #672817 #176728
tetradic
#281767 #67172E #566717 #176750
square
#281767 #67172E #566717 #176750
split-complementary
#281767 #675017 #2E6717
monochromatic
#0A0619 #150C35 #281767 #3B2299 #4F2DCB

Accessibility & contrast

On white

14.91
#281767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281767
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281767#FFFFFF#000000##FFFFFF
##2817671.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#062D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281767;
/* rgb */ color: rgb(40, 23, 103);
/* oklch */ color: oklch(28.7% 0.130 284.4);
Tailwind
colors: {
  custom: {
    50: '#6a5693',
    500: '#281767',
    950: '#000000',
  },
}
SCSS
$custom: #281767;
$custom-light: #6a5693;
$custom-dark: #000000;
JSON
{
  "hex": "#281767",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 252.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28734,
    "c": 0.13049,
    "h": 284.4
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#281767
secondary
#899D3D
accent
#E741C3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281767

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

Preview Lab → · Contrast checker → · Palette generator →

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