#281A5D#281A5D

#281A5D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.113 H 286.3°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#281A5D
RGBrgb(40, 26, 93)
HSLhsl(253, 56%, 23%)
HSVhsv(253, 72%, 36%)
CMYKcmyk(57%, 72%, 0%, 63.5%)
CIE-LABlab(15.38, 26.51, -37.80)
CIE-LCHlch(15.38, 46.17, 305.05°)
OKLaboklab(28.2% 0.0317 -0.1086)
OKLCHoklch(28.2% 0.113 286.3)
XYZxyz(3.2197, 1.9801, 10.5663)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A5D #4F5D1A
analogous
#1A2D5D #281A5D #491A5D
triadic
#281A5D #5D281A #1A5D28
tetradic
#281A5D #5D1A2D #4F5D1A #1A5D49
square
#281A5D #5D1A2D #4F5D1A #1A5D49
split-complementary
#281A5D #5D491A #2D5D1A
monochromatic
#0A0718 #130D2D #281A5D #3D278D #5135BD

Accessibility & contrast

On white

15.04
#281A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A5D
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A5D#FFFFFF#000000##FFFFFF
##281A5D1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#132B39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281a5d;
/* rgb */ color: rgb(40, 26, 93);
/* oklch */ color: oklch(28.2% 0.113 286.3);
Tailwind
colors: {
  custom: {
    50: '#68578c',
    500: '#281a5d',
    950: '#000000',
  },
}
SCSS
$custom: #281a5d;
$custom-light: #68578c;
$custom-dark: #000000;
JSON
{
  "hex": "#281a5d",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 252.537,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28196,
    "c": 0.11309,
    "h": 286.3
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#281A5D
secondary
#829340
accent
#E048C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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