#281A4C#281A4C

#281A4C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.088 H 292.2°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#281A4C
RGBrgb(40, 26, 76)
HSLhsl(257, 49%, 20%)
HSVhsv(257, 66%, 30%)
CMYKcmyk(47.4%, 65.8%, 0%, 70.2%)
CIE-LABlab(13.89, 20.80, -28.70)
CIE-LCHlch(13.89, 35.44, 305.93°)
OKLaboklab(26.65% 0.0335 -0.0818)
OKLCHoklch(26.65% 0.088 292.2)
XYZxyz(2.5486, 1.7116, 7.0322)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A4C #3E4C1A
analogous
#1A254C #281A4C #411A4C
triadic
#281A4C #4C281A #1A4C28
tetradic
#281A4C #4C1A25 #3E4C1A #1A4C41
square
#281A4C #4C1A25 #3E4C1A #1A4C41
split-complementary
#281A4C #4C411A #254C1A
monochromatic
#0C0817 #100A1E #281A4C #402A7A #5839A7

Accessibility & contrast

On white

15.64
#281A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A4C
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A4C#FFFFFF#000000##FFFFFF
##281A4C1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#01224B
Tritanopia (blue-blind)
#1E2530
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281a4c;
/* rgb */ color: rgb(40, 26, 76);
/* oklch */ color: oklch(26.7% 0.088 292.2);
Tailwind
colors: {
  custom: {
    50: '#65577e',
    500: '#281a4c',
    950: '#000000',
  },
}
SCSS
$custom: #281a4c;
$custom-light: #65577e;
$custom-dark: #000000;
JSON
{
  "hex": "#281a4c",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 256.8,
    "s": 49.02,
    "l": 20
  },
  "oklch": {
    "l": 0.2665,
    "c": 0.0884,
    "h": 292.2
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#281A4C
secondary
#708240
accent
#D94FB2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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