#281A4B#281A4B

#281A4B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.087 H 292.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#281A4B
RGBrgb(40, 26, 75)
HSLhsl(257, 49%, 20%)
HSVhsv(257, 65%, 29%)
CMYKcmyk(46.7%, 65.3%, 0%, 70.6%)
CIE-LABlab(13.81, 20.47, -28.14)
CIE-LCHlch(13.81, 34.80, 306.03°)
OKLaboklab(26.57% 0.0335 -0.0802)
OKLCHoklch(26.57% 0.087 292.7)
XYZxyz(2.5141, 1.6978, 6.8505)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A4B #3D4B1A
analogous
#1A244B #281A4B #411A4B
triadic
#281A4B #4B281A #1A4B28
tetradic
#281A4B #4B1A24 #3D4B1A #1A4B41
square
#281A4B #4B1A24 #3D4B1A #1A4B41
split-complementary
#281A4B #4B411A #244B1A
monochromatic
#0C0817 #100A1E #281A4B #402A78 #583AA6

Accessibility & contrast

On white

15.68
#281A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A4B
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A4B#FFFFFF#000000##FFFFFF
##281A4B1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#02224A
Tritanopia (blue-blind)
#1E252F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281a4b;
/* rgb */ color: rgb(40, 26, 75);
/* oklch */ color: oklch(26.6% 0.087 292.7);
Tailwind
colors: {
  custom: {
    50: '#65577e',
    500: '#281a4b',
    950: '#000000',
  },
}
SCSS
$custom: #281a4b;
$custom-light: #65577e;
$custom-dark: #000000;
JSON
{
  "hex": "#281a4b",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 75
  },
  "hsl": {
    "h": 257.143,
    "s": 48.515,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26565,
    "c": 0.08689,
    "h": 292.7
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#281A4B
secondary
#6E8140
accent
#D850B1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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