#281A4E#281A4E

#281A4E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.091 H 291.4°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#281A4E
RGBrgb(40, 26, 78)
HSLhsl(256, 50%, 20%)
HSVhsv(256, 67%, 31%)
CMYKcmyk(48.7%, 66.7%, 0%, 69.4%)
CIE-LABlab(14.06, 21.46, -29.81)
CIE-LCHlch(14.06, 36.73, 305.75°)
OKLaboklab(26.82% 0.0334 -0.0851)
OKLCHoklch(26.82% 0.091 291.4)
XYZxyz(2.6192, 1.7399, 7.4041)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A4E #404E1A
analogous
#1A264E #281A4E #421A4E
triadic
#281A4E #4E281A #1A4E28
tetradic
#281A4E #4E1A26 #404E1A #1A4E42
square
#281A4E #4E1A26 #404E1A #1A4E42
split-complementary
#281A4E #4E421A #264E1A
monochromatic
#0C0817 #100B20 #281A4E #40297C #5739AA

Accessibility & contrast

On white

15.58
#281A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A4E
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A4E#FFFFFF#000000##FFFFFF
##281A4E1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#1D2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281a4e;
/* rgb */ color: rgb(40, 26, 78);
/* oklch */ color: oklch(26.8% 0.091 291.4);
Tailwind
colors: {
  custom: {
    50: '#655780',
    500: '#281a4e',
    950: '#000000',
  },
}
SCSS
$custom: #281a4e;
$custom-light: #655780;
$custom-dark: #000000;
JSON
{
  "hex": "#281a4e",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 256.154,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26821,
    "c": 0.09139,
    "h": 291.4
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#281A4E
secondary
#728440
accent
#DA4EB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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