#281A5C#281A5C

#281A5C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.112 H 286.5°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#281A5C
RGBrgb(40, 26, 92)
HSLhsl(253, 56%, 23%)
HSVhsv(253, 72%, 36%)
CMYKcmyk(56.5%, 71.7%, 0%, 63.9%)
CIE-LABlab(15.29, 26.18, -37.28)
CIE-LCHlch(15.29, 45.56, 305.07°)
OKLaboklab(28.1% 0.0318 -0.1071)
OKLCHoklch(28.1% 0.112 286.5)
XYZxyz(3.1757, 1.9624, 10.3346)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A5C #4E5C1A
analogous
#1A2D5C #281A5C #491A5C
triadic
#281A5C #5C281A #1A5C28
tetradic
#281A5C #5C1A2D #4E5C1A #1A5C49
square
#281A5C #5C1A2D #4E5C1A #1A5C49
split-complementary
#281A5C #5C491A #2D5C1A
monochromatic
#0A0718 #130D2C #281A5C #3D278C #5135BB

Accessibility & contrast

On white

15.08
#281A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A5C
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A5C#FFFFFF#000000##FFFFFF
##281A5C1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#132B38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281a5c;
/* rgb */ color: rgb(40, 26, 92);
/* oklch */ color: oklch(28.1% 0.112 286.5);
Tailwind
colors: {
  custom: {
    50: '#68578b',
    500: '#281a5c',
    950: '#000000',
  },
}
SCSS
$custom: #281a5c;
$custom-light: #68578b;
$custom-dark: #000000;
JSON
{
  "hex": "#281a5c",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 252.727,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.281,
    "c": 0.11169,
    "h": 286.5
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#281A5C
secondary
#819240
accent
#DF49BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #281A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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