#281A4D#281A4D

#281A4D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.090 H 291.8°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#281A4D
RGBrgb(40, 26, 77)
HSLhsl(256, 50%, 20%)
HSVhsv(256, 66%, 30%)
CMYKcmyk(48.1%, 66.2%, 0%, 69.8%)
CIE-LABlab(13.98, 21.13, -29.26)
CIE-LCHlch(13.98, 36.09, 305.84°)
OKLaboklab(26.74% 0.0334 -0.0834)
OKLCHoklch(26.74% 0.09 291.8)
XYZxyz(2.5837, 1.7256, 7.2167)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A4D #3F4D1A
analogous
#1A254D #281A4D #421A4D
triadic
#281A4D #4D281A #1A4D28
tetradic
#281A4D #4D1A25 #3F4D1A #1A4D42
square
#281A4D #4D1A25 #3F4D1A #1A4D42
split-complementary
#281A4D #4D421A #254D1A
monochromatic
#0C0817 #100B1F #281A4D #40297B #5839A9

Accessibility & contrast

On white

15.61
#281A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A4D
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A4D#FFFFFF#000000##FFFFFF
##281A4D1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#00234C
Tritanopia (blue-blind)
#1D2530
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281a4d;
/* rgb */ color: rgb(40, 26, 77);
/* oklch */ color: oklch(26.7% 0.090 291.8);
Tailwind
colors: {
  custom: {
    50: '#65577f',
    500: '#281a4d',
    950: '#000000',
  },
}
SCSS
$custom: #281a4d;
$custom-light: #65577f;
$custom-dark: #000000;
JSON
{
  "hex": "#281a4d",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 256.471,
    "s": 49.515,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26735,
    "c": 0.08989,
    "h": 291.8
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#281A4D
secondary
#718340
accent
#D94FB3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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