#281A6B#281A6B

#281A6B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.6% C 0.132 H 282.6°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#281A6B
RGBrgb(40, 26, 107)
HSLhsl(250, 61%, 26%)
HSVhsv(250, 76%, 42%)
CMYKcmyk(62.6%, 75.7%, 0%, 58%)
CIE-LABlab(16.75, 31.24, -44.80)
CIE-LCHlch(16.75, 54.62, 304.89°)
OKLaboklab(29.6% 0.0289 -0.1291)
OKLCHoklch(29.6% 0.132 282.6)
XYZxyz(3.8975, 2.2512, 14.1362)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A6B #5D6B1A
analogous
#1A346B #281A6B #501A6B
triadic
#281A6B #6B281A #1A6B28
tetradic
#281A6B #6B1A34 #5D6B1A #1A6B50
square
#281A6B #6B1A34 #5D6B1A #1A6B50
split-complementary
#281A6B #6B501A #346B1A
monochromatic
#090619 #160E3A #281A6B #3A269C #4D32CD

Accessibility & contrast

On white

14.48
#281A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A6B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A6B#FFFFFF#000000##FFFFFF
##281A6B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281a6b;
/* rgb */ color: rgb(40, 26, 107);
/* oklch */ color: oklch(29.6% 0.132 282.6);
Tailwind
colors: {
  custom: {
    50: '#6b5896',
    500: '#281a6b',
    950: '#000000',
  },
}
SCSS
$custom: #281a6b;
$custom-light: #6b5896;
$custom-dark: #000000;
JSON
{
  "hex": "#281a6b",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 250.37,
    "s": 60.902,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29598,
    "c": 0.13228,
    "h": 282.6
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#281A6B
secondary
#90A040
accent
#E444C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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