#281A45#281A45

#281A45 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.078 H 295.5°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#281A45
RGBrgb(40, 26, 69)
HSLhsl(260, 45%, 19%)
HSVhsv(260, 62%, 27%)
CMYKcmyk(42%, 62.3%, 0%, 72.9%)
CIE-LABlab(13.35, 18.50, -24.74)
CIE-LCHlch(13.35, 30.89, 306.80°)
OKLaboklab(26.07% 0.0335 -0.0702)
OKLCHoklch(26.07% 0.078 295.5)
XYZxyz(2.3184, 1.6195, 5.8195)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A45 #37451A
analogous
#1A2145 #281A45 #3D1A45
triadic
#281A45 #45281A #1A4528
tetradic
#281A45 #451A21 #37451A #1A453D
square
#281A45 #451A21 #37451A #1A453D
split-complementary
#281A45 #453D1A #21451A
monochromatic
#0D0816 #0E0919 #281A45 #422B71 #5C3B9E

Accessibility & contrast

On white

15.86
#281A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A45
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A45#FFFFFF#000000##FFFFFF
##281A451.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062346
Deuteranopia (green-blind)
#0A2244
Tritanopia (blue-blind)
#21232C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281a45;
/* rgb */ color: rgb(40, 26, 69);
/* oklch */ color: oklch(26.1% 0.078 295.5);
Tailwind
colors: {
  custom: {
    50: '#645779',
    500: '#281a45',
    950: '#000000',
  },
}
SCSS
$custom: #281a45;
$custom-light: #645779;
$custom-dark: #000000;
JSON
{
  "hex": "#281a45",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 69
  },
  "hsl": {
    "h": 259.535,
    "s": 45.263,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26074,
    "c": 0.07776,
    "h": 295.5
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

primary
#281A45
secondary
#687B40
accent
#D553AB
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #281A45

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

Preview Lab → · Contrast checker → · Palette generator →

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