#281A41#281A41

#281A41 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.8% C 0.072 H 297.7°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#281A41
RGBrgb(40, 26, 65)
HSLhsl(262, 43%, 18%)
HSVhsv(262, 60%, 25%)
CMYKcmyk(38.5%, 60%, 0%, 74.5%)
CIE-LABlab(13.06, 17.22, -22.41)
CIE-LCHlch(13.06, 28.26, 307.54°)
OKLaboklab(25.76% 0.0333 -0.0633)
OKLCHoklch(25.76% 0.072 297.7)
XYZxyz(2.1984, 1.5715, 5.1875)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A41 #33411A
analogous
#1A2041 #281A41 #3B1A41
triadic
#281A41 #41281A #1A4128
tetradic
#281A41 #411A20 #33411A #1A413B
square
#281A41 #411A20 #33411A #1A413B
split-complementary
#281A41 #413B1A #20411A
monochromatic
#0D0916 #0D0916 #281A41 #432B6D #5E3D98

Accessibility & contrast

On white

15.98
#281A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A41
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A41#FFFFFF#000000##FFFFFF
##281A411.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2242
Deuteranopia (green-blind)
#0F2140
Tritanopia (blue-blind)
#22222A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281a41;
/* rgb */ color: rgb(40, 26, 65);
/* oklch */ color: oklch(25.8% 0.072 297.7);
Tailwind
colors: {
  custom: {
    50: '#645776',
    500: '#281a41',
    950: '#000000',
  },
}
SCSS
$custom: #281a41;
$custom-light: #645776;
$custom-dark: #000000;
JSON
{
  "hex": "#281a41",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 65
  },
  "hsl": {
    "h": 261.538,
    "s": 42.857,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25763,
    "c": 0.07156,
    "h": 297.7
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#281A41
secondary
#637740
accent
#D355A6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #281A41

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

Preview Lab → · Contrast checker → · Palette generator →

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