#281A64#281A64

#281A64 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.123 H 284.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#281A64
RGBrgb(40, 26, 100)
HSLhsl(251, 59%, 25%)
HSVhsv(251, 74%, 39%)
CMYKcmyk(60%, 74%, 0%, 60.8%)
CIE-LABlab(16.05, 28.88, -41.35)
CIE-LCHlch(16.05, 50.44, 304.93°)
OKLaboklab(28.88% 0.0304 -0.119)
OKLCHoklch(28.88% 0.123 284.3)
XYZxyz(3.5440, 2.1098, 12.2746)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A64 #56641A
analogous
#1A3164 #281A64 #4D1A64
triadic
#281A64 #64281A #1A6428
tetradic
#281A64 #641A31 #56641A #1A644D
square
#281A64 #641A31 #56641A #1A644D
split-complementary
#281A64 #644D1A #31641A
monochromatic
#0A0618 #150D33 #281A64 #3B2795 #4F33C5

Accessibility & contrast

On white

14.77
#281A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A64
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A64#FFFFFF#000000##FFFFFF
##281A641.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#0A2D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281a64;
/* rgb */ color: rgb(40, 26, 100);
/* oklch */ color: oklch(28.9% 0.123 284.3);
Tailwind
colors: {
  custom: {
    50: '#6a5891',
    500: '#281a64',
    950: '#000000',
  },
}
SCSS
$custom: #281a64;
$custom-light: #6a5891;
$custom-dark: #000000;
JSON
{
  "hex": "#281a64",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 251.351,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28884,
    "c": 0.12281,
    "h": 284.3
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#281A64
secondary
#899A40
accent
#E246C4
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A64

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

Preview Lab → · Contrast checker → · Palette generator →

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