#281362#281362

#281362 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.129 H 286.8°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#281362
RGBrgb(40, 19, 98)
HSLhsl(256, 68%, 23%)
HSVhsv(256, 81%, 38%)
CMYKcmyk(59.2%, 80.6%, 0%, 61.6%)
CIE-LABlab(14.39, 32.31, -42.75)
CIE-LCHlch(14.39, 53.59, 307.08°)
OKLaboklab(27.65% 0.0371 -0.123)
OKLCHoklch(27.65% 0.129 286.8)
XYZxyz(3.3119, 1.7985, 11.7255)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281362 #4D6213
analogous
#132662 #281362 #4F1362
triadic
#281362 #622813 #136228
tetradic
#281362 #621326 #4D6213 #13624F
square
#281362 #621326 #4D6213 #13624F
split-complementary
#281362 #624F13 #266213
monochromatic
#0A051A #13092F #281362 #3D1D95 #5227C9

Accessibility & contrast

On white

15.44
#281362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281362
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281362#FFFFFF#000000##FFFFFF
##2813621.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#0E293A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281362;
/* rgb */ color: rgb(40, 19, 98);
/* oklch */ color: oklch(27.6% 0.129 286.8);
Tailwind
colors: {
  custom: {
    50: '#6a5390',
    500: '#281362',
    950: '#000000',
  },
}
SCSS
$custom: #281362;
$custom-light: #6a5390;
$custom-dark: #000000;
JSON
{
  "hex": "#281362",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 255.949,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27646,
    "c": 0.12851,
    "h": 286.8
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#281362
secondary
#809A37
accent
#EA3DBC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281362

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

Preview Lab → · Contrast checker → · Palette generator →

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