#281A62#281A62

#281A62 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.7% C 0.120 H 284.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#281A62
RGBrgb(40, 26, 98)
HSLhsl(252, 58%, 24%)
HSVhsv(252, 73%, 38%)
CMYKcmyk(59.2%, 73.5%, 0%, 61.6%)
CIE-LABlab(15.86, 28.21, -40.35)
CIE-LCHlch(15.86, 49.23, 304.96°)
OKLaboklab(28.69% 0.0308 -0.116)
OKLCHoklch(28.69% 0.12 284.8)
XYZxyz(3.4484, 2.0715, 11.7710)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A62 #54621A
analogous
#1A3062 #281A62 #4C1A62
triadic
#281A62 #62281A #1A6228
tetradic
#281A62 #621A30 #54621A #1A624C
square
#281A62 #621A30 #54621A #1A624C
split-complementary
#281A62 #624C1A #30621A
monochromatic
#0A0618 #140D32 #281A62 #3C2792 #4F34C3

Accessibility & contrast

On white

14.85
#281A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A62
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A62#FFFFFF#000000##FFFFFF
##281A621.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#0D2D3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281a62;
/* rgb */ color: rgb(40, 26, 98);
/* oklch */ color: oklch(28.7% 0.120 284.8);
Tailwind
colors: {
  custom: {
    50: '#69588f',
    500: '#281a62',
    950: '#000000',
  },
}
SCSS
$custom: #281a62;
$custom-light: #69588f;
$custom-dark: #000000;
JSON
{
  "hex": "#281a62",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 251.667,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28685,
    "c": 0.12006,
    "h": 284.8
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#281A62
secondary
#879840
accent
#E147C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281A62

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

Preview Lab → · Contrast checker → · Palette generator →

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