#281A6A#281A6A

#281A6A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.131 H 282.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#281A6A
RGBrgb(40, 26, 106)
HSLhsl(251, 61%, 26%)
HSVhsv(251, 75%, 42%)
CMYKcmyk(62.3%, 75.5%, 0%, 58.4%)
CIE-LABlab(16.65, 30.90, -44.31)
CIE-LCHlch(16.65, 54.02, 304.89°)
OKLaboklab(29.49% 0.0291 -0.1277)
OKLCHoklch(29.49% 0.131 282.8)
XYZxyz(3.8452, 2.2303, 13.8607)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A6A #5C6A1A
analogous
#1A346A #281A6A #501A6A
triadic
#281A6A #6A281A #1A6A28
tetradic
#281A6A #6A1A34 #5C6A1A #1A6A50
square
#281A6A #6A1A34 #5C6A1A #1A6A50
split-complementary
#281A6A #6A501A #346A1A
monochromatic
#090619 #150E39 #281A6A #3B269B #4D32CC

Accessibility & contrast

On white

14.52
#281A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A6A
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A6A#FFFFFF#000000##FFFFFF
##281A6A1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281a6a;
/* rgb */ color: rgb(40, 26, 106);
/* oklch */ color: oklch(29.5% 0.131 282.8);
Tailwind
colors: {
  custom: {
    50: '#6b5895',
    500: '#281a6a',
    950: '#000000',
  },
}
SCSS
$custom: #281a6a;
$custom-light: #6b5895;
$custom-dark: #000000;
JSON
{
  "hex": "#281a6a",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 250.5,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29495,
    "c": 0.13095,
    "h": 282.8
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#281A6A
secondary
#8F9F40
accent
#E444C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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