#281A68#281A68

#281A68 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.128 H 283.3°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#281A68
RGBrgb(40, 26, 104)
HSLhsl(251, 60%, 25%)
HSVhsv(251, 75%, 41%)
CMYKcmyk(61.5%, 75%, 0%, 59.2%)
CIE-LABlab(16.45, 30.23, -43.33)
CIE-LCHlch(16.45, 52.84, 304.90°)
OKLaboklab(29.29% 0.0296 -0.1248)
OKLCHoklch(29.29% 0.128 283.3)
XYZxyz(3.7424, 2.1891, 13.3194)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A68 #5A681A
analogous
#1A3368 #281A68 #4F1A68
triadic
#281A68 #68281A #1A6828
tetradic
#281A68 #681A33 #5A681A #1A684F
square
#281A68 #681A33 #5A681A #1A684F
split-complementary
#281A68 #684F1A #33681A
monochromatic
#090618 #150E37 #281A68 #3B2699 #4E32CA

Accessibility & contrast

On white

14.61
#281A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#281A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A68
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A68#FFFFFF#000000##FFFFFF
##281A681.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#042F3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281a68;
/* rgb */ color: rgb(40, 26, 104);
/* oklch */ color: oklch(29.3% 0.128 283.3);
Tailwind
colors: {
  custom: {
    50: '#6a5894',
    500: '#281a68',
    950: '#000000',
  },
}
SCSS
$custom: #281a68;
$custom-light: #6a5894;
$custom-dark: #000000;
JSON
{
  "hex": "#281a68",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 250.769,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29289,
    "c": 0.12825,
    "h": 283.3
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#281A68
secondary
#8D9D40
accent
#E345C7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A68

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

Preview Lab → · Contrast checker → · Palette generator →

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