#281A5E#281A5E

#281A5E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.114 H 286.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#281A5E
RGBrgb(40, 26, 94)
HSLhsl(252, 57%, 24%)
HSVhsv(252, 72%, 37%)
CMYKcmyk(57.4%, 72.3%, 0%, 63.1%)
CIE-LABlab(15.48, 26.85, -38.31)
CIE-LCHlch(15.48, 46.79, 305.02°)
OKLaboklab(28.29% 0.0315 -0.1101)
OKLCHoklch(28.29% 0.114 286)
XYZxyz(3.2642, 1.9979, 10.8011)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A5E #505E1A
analogous
#1A2E5E #281A5E #4A1A5E
triadic
#281A5E #5E281A #1A5E28
tetradic
#281A5E #5E1A2E #505E1A #1A5E4A
square
#281A5E #5E1A2E #505E1A #1A5E4A
split-complementary
#281A5E #5E4A1A #2E5E1A
monochromatic
#0A0718 #140D2E #281A5E #3C278E #5135BE

Accessibility & contrast

On white

15.00
#281A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A5E
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A5E#FFFFFF#000000##FFFFFF
##281A5E1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#122B39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281a5e;
/* rgb */ color: rgb(40, 26, 94);
/* oklch */ color: oklch(28.3% 0.114 286.0);
Tailwind
colors: {
  custom: {
    50: '#68578c',
    500: '#281a5e',
    950: '#000000',
  },
}
SCSS
$custom: #281a5e;
$custom-light: #68578c;
$custom-dark: #000000;
JSON
{
  "hex": "#281a5e",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 252.353,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28293,
    "c": 0.11449,
    "h": 286
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#281A5E
secondary
#839440
accent
#E048C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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