#281A60#281A60

#281A60 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.117 H 285.4°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#281A60
RGBrgb(40, 26, 96)
HSLhsl(252, 57%, 24%)
HSVhsv(252, 73%, 38%)
CMYKcmyk(58.3%, 72.9%, 0%, 62.4%)
CIE-LABlab(15.67, 27.53, -39.34)
CIE-LCHlch(15.67, 48.01, 304.99°)
OKLaboklab(28.49% 0.0311 -0.1131)
OKLCHoklch(28.49% 0.117 285.4)
XYZxyz(3.3552, 2.0342, 11.2799)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A60 #52601A
analogous
#1A2F60 #281A60 #4B1A60
triadic
#281A60 #60281A #1A6028
tetradic
#281A60 #601A2F #52601A #1A604B
square
#281A60 #601A2F #52601A #1A604B
split-complementary
#281A60 #604B1A #2F601A
monochromatic
#0A0718 #140D30 #281A60 #3C2790 #5034C0

Accessibility & contrast

On white

14.93
#281A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A60
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A60#FFFFFF#000000##FFFFFF
##281A601.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#0F2C3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281a60;
/* rgb */ color: rgb(40, 26, 96);
/* oklch */ color: oklch(28.5% 0.117 285.4);
Tailwind
colors: {
  custom: {
    50: '#69588e',
    500: '#281a60',
    950: '#000000',
  },
}
SCSS
$custom: #281a60;
$custom-light: #69588e;
$custom-dark: #000000;
JSON
{
  "hex": "#281a60",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 96
  },
  "hsl": {
    "h": 252,
    "s": 57.377,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28488,
    "c": 0.11729,
    "h": 285.4
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#281A60
secondary
#859640
accent
#E147C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281A60

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

Preview Lab → · Contrast checker → · Palette generator →

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