#281A58#281A58

#281A58 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.106 H 287.8°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#281A58
RGBrgb(40, 26, 88)
HSLhsl(254, 54%, 22%)
HSVhsv(254, 70%, 35%)
CMYKcmyk(54.5%, 70.5%, 0%, 65.5%)
CIE-LABlab(14.92, 24.82, -35.20)
CIE-LCHlch(14.92, 43.07, 305.19°)
OKLaboklab(27.72% 0.0324 -0.1009)
OKLCHoklch(27.72% 0.106 287.8)
XYZxyz(3.0054, 1.8943, 9.4379)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A58 #4A581A
analogous
#1A2B58 #281A58 #471A58
triadic
#281A58 #58281A #1A5828
tetradic
#281A58 #581A2B #4A581A #1A5847
square
#281A58 #581A2B #4A581A #1A5847
split-complementary
#281A58 #58471A #2B581A
monochromatic
#0B0718 #130C29 #281A58 #3D2887 #5336B6

Accessibility & contrast

On white

15.23
#281A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#281A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A58
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A58#FFFFFF#000000##FFFFFF
##281A581.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#172936
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281a58;
/* rgb */ color: rgb(40, 26, 88);
/* oklch */ color: oklch(27.7% 0.106 287.8);
Tailwind
colors: {
  custom: {
    50: '#675788',
    500: '#281a58',
    950: '#000000',
  },
}
SCSS
$custom: #281a58;
$custom-light: #675788;
$custom-dark: #000000;
JSON
{
  "hex": "#281a58",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 253.548,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27721,
    "c": 0.10599,
    "h": 287.8
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#281A58
secondary
#7C8E40
accent
#DE4ABC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281A58

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

Preview Lab → · Contrast checker → · Palette generator →

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