#281A65#281A65

#281A65 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.124 H 284.1°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#281A65
RGBrgb(40, 26, 101)
HSLhsl(251, 59%, 25%)
HSVhsv(251, 74%, 40%)
CMYKcmyk(60.4%, 74.3%, 0%, 60.4%)
CIE-LABlab(16.15, 29.22, -41.85)
CIE-LCHlch(16.15, 51.04, 304.92°)
OKLaboklab(28.99% 0.0302 -0.1204)
OKLCHoklch(28.99% 0.124 284.1)
XYZxyz(3.5927, 2.1293, 12.5311)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A65 #57651A
analogous
#1A3265 #281A65 #4E1A65
triadic
#281A65 #65281A #1A6528
tetradic
#281A65 #651A32 #57651A #1A654E
square
#281A65 #651A32 #57651A #1A654E
split-complementary
#281A65 #654E1A #32651A
monochromatic
#0A0618 #150D34 #281A65 #3B2796 #4F33C6

Accessibility & contrast

On white

14.73
#281A65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281A65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A65
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A65#FFFFFF#000000##FFFFFF
##281A651.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#092E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281a65;
/* rgb */ color: rgb(40, 26, 101);
/* oklch */ color: oklch(29.0% 0.124 284.1);
Tailwind
colors: {
  custom: {
    50: '#6a5892',
    500: '#281a65',
    950: '#000000',
  },
}
SCSS
$custom: #281a65;
$custom-light: #6a5892;
$custom-dark: #000000;
JSON
{
  "hex": "#281a65",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 101
  },
  "hsl": {
    "h": 251.2,
    "s": 59.055,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28985,
    "c": 0.12417,
    "h": 284.1
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#281A65
secondary
#8A9B40
accent
#E246C5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A65

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

Preview Lab → · Contrast checker → · Palette generator →

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