#281A66#281A66

#281A66 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.126 H 283.8°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#281A66
RGBrgb(40, 26, 102)
HSLhsl(251, 59%, 25%)
HSVhsv(251, 75%, 40%)
CMYKcmyk(60.8%, 74.5%, 0%, 60%)
CIE-LABlab(16.25, 29.56, -42.35)
CIE-LCHlch(16.25, 51.64, 304.91°)
OKLaboklab(29.09% 0.03 -0.1219)
OKLCHoklch(29.09% 0.126 283.8)
XYZxyz(3.6420, 2.1490, 12.7907)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A66 #58661A
analogous
#1A3266 #281A66 #4E1A66
triadic
#281A66 #66281A #1A6628
tetradic
#281A66 #661A32 #58661A #1A664E
square
#281A66 #661A32 #58661A #1A664E
split-complementary
#281A66 #664E1A #32661A
monochromatic
#0A0618 #150E35 #281A66 #3B2697 #4E33C8

Accessibility & contrast

On white

14.69
#281A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A66
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A66#FFFFFF#000000##FFFFFF
##281A661.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#072E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281a66;
/* rgb */ color: rgb(40, 26, 102);
/* oklch */ color: oklch(29.1% 0.126 283.8);
Tailwind
colors: {
  custom: {
    50: '#6a5892',
    500: '#281a66',
    950: '#000000',
  },
}
SCSS
$custom: #281a66;
$custom-light: #6a5892;
$custom-dark: #000000;
JSON
{
  "hex": "#281a66",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 251.053,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29086,
    "c": 0.12554,
    "h": 283.8
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#281A66
secondary
#8B9C40
accent
#E345C6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A66

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

Preview Lab → · Contrast checker → · Palette generator →

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