#281A4A#281A4A

#281A4A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.085 H 293.1°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#281A4A
RGBrgb(40, 26, 74)
HSLhsl(258, 48%, 20%)
HSVhsv(258, 65%, 29%)
CMYKcmyk(45.9%, 64.9%, 0%, 71%)
CIE-LABlab(13.73, 20.14, -27.58)
CIE-LCHlch(13.73, 34.15, 306.13°)
OKLaboklab(26.48% 0.0335 -0.0785)
OKLCHoklch(26.48% 0.085 293.1)
XYZxyz(2.4802, 1.6843, 6.6717)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A4A #3C4A1A
analogous
#1A244A #281A4A #401A4A
triadic
#281A4A #4A281A #1A4A28
tetradic
#281A4A #4A1A24 #3C4A1A #1A4A40
square
#281A4A #4A1A24 #3C4A1A #1A4A40
split-complementary
#281A4A #4A401A #244A1A
monochromatic
#0C0817 #100A1D #281A4A #402A77 #593AA5

Accessibility & contrast

On white

15.71
#281A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A4A
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A4A#FFFFFF#000000##FFFFFF
##281A4A1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244C
Deuteranopia (green-blind)
#042249
Tritanopia (blue-blind)
#1F242F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281a4a;
/* rgb */ color: rgb(40, 26, 74);
/* oklch */ color: oklch(26.5% 0.085 293.1);
Tailwind
colors: {
  custom: {
    50: '#65577d',
    500: '#281a4a',
    950: '#000000',
  },
}
SCSS
$custom: #281a4a;
$custom-light: #65577d;
$custom-dark: #000000;
JSON
{
  "hex": "#281a4a",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 74
  },
  "hsl": {
    "h": 257.5,
    "s": 48,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26481,
    "c": 0.08538,
    "h": 293.1
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#281A4A
secondary
#6D8040
accent
#D850B0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #281A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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