#281A50#281A50

#281A50 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.094 H 290.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#281A50
RGBrgb(40, 26, 80)
HSLhsl(256, 51%, 21%)
HSVhsv(256, 68%, 31%)
CMYKcmyk(50%, 67.5%, 0%, 68.6%)
CIE-LABlab(14.23, 22.13, -30.91)
CIE-LCHlch(14.23, 38.01, 305.60°)
OKLaboklab(27% 0.0332 -0.0883)
OKLCHoklch(27% 0.094 290.6)
XYZxyz(2.6920, 1.7690, 7.7875)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A50 #42501A
analogous
#1A2750 #281A50 #431A50
triadic
#281A50 #50281A #1A5028
tetradic
#281A50 #501A27 #42501A #1A5043
square
#281A50 #501A27 #42501A #1A5043
split-complementary
#281A50 #50431A #27501A
monochromatic
#0C0817 #110B22 #281A50 #3F297E #5638AC

Accessibility & contrast

On white

15.51
#281A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A50
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A50#FFFFFF#000000##FFFFFF
##281A501.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#1C2632
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281a50;
/* rgb */ color: rgb(40, 26, 80);
/* oklch */ color: oklch(27.0% 0.094 290.6);
Tailwind
colors: {
  custom: {
    50: '#665781',
    500: '#281a50',
    950: '#000000',
  },
}
SCSS
$custom: #281a50;
$custom-light: #665781;
$custom-dark: #000000;
JSON
{
  "hex": "#281a50",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 255.556,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26996,
    "c": 0.09436,
    "h": 290.6
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#281A50
secondary
#748640
accent
#DA4DB6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281A50

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

Preview Lab → · Contrast checker → · Palette generator →

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