#281A5B#281A5B

#281A5B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.110 H 286.8°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#281A5B
RGBrgb(40, 26, 91)
HSLhsl(253, 56%, 23%)
HSVhsv(253, 71%, 36%)
CMYKcmyk(56%, 71.4%, 0%, 64.3%)
CIE-LABlab(15.20, 25.84, -36.77)
CIE-LCHlch(15.20, 44.94, 305.10°)
OKLaboklab(28% 0.032 -0.1055)
OKLCHoklch(28% 0.11 286.8)
XYZxyz(3.1322, 1.9451, 10.1059)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A5B #4D5B1A
analogous
#1A2C5B #281A5B #481A5B
triadic
#281A5B #5B281A #1A5B28
tetradic
#281A5B #5B1A2C #4D5B1A #1A5B48
square
#281A5B #5B1A2C #4D5B1A #1A5B48
split-complementary
#281A5B #5B481A #2C5B1A
monochromatic
#0A0718 #130C2B #281A5B #3D288B #5235BA

Accessibility & contrast

On white

15.12
#281A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A5B
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A5B#FFFFFF#000000##FFFFFF
##281A5B1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#142A38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281a5b;
/* rgb */ color: rgb(40, 26, 91);
/* oklch */ color: oklch(28.0% 0.110 286.8);
Tailwind
colors: {
  custom: {
    50: '#68578a',
    500: '#281a5b',
    950: '#000000',
  },
}
SCSS
$custom: #281a5b;
$custom-light: #68578a;
$custom-dark: #000000;
JSON
{
  "hex": "#281a5b",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 252.923,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28004,
    "c": 0.11026,
    "h": 286.8
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#281A5B
secondary
#809140
accent
#DF49BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #281A5B

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

Preview Lab → · Contrast checker → · Palette generator →

#281A5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva