#281A6C#281A6C

#281A6C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.134 H 282.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#281A6C
RGBrgb(40, 26, 108)
HSLhsl(250, 61%, 26%)
HSVhsv(250, 76%, 42%)
CMYKcmyk(63%, 75.9%, 0%, 57.6%)
CIE-LABlab(16.86, 31.58, -45.28)
CIE-LCHlch(16.86, 55.21, 304.89°)
OKLaboklab(29.7% 0.0287 -0.1305)
OKLCHoklch(29.7% 0.134 282.4)
XYZxyz(3.9504, 2.2723, 14.4149)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A6C #5E6C1A
analogous
#1A356C #281A6C #511A6C
triadic
#281A6C #6C281A #1A6C28
tetradic
#281A6C #6C1A35 #5E6C1A #1A6C51
square
#281A6C #6C1A35 #5E6C1A #1A6C51
split-complementary
#281A6C #6C511A #356C1A
monochromatic
#090619 #160E3B #281A6C #3A269D #4D33CE

Accessibility & contrast

On white

14.44
#281A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A6C
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A6C#FFFFFF#000000##FFFFFF
##281A6C1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281a6c;
/* rgb */ color: rgb(40, 26, 108);
/* oklch */ color: oklch(29.7% 0.134 282.4);
Tailwind
colors: {
  custom: {
    50: '#6b5897',
    500: '#281a6c',
    950: '#000000',
  },
}
SCSS
$custom: #281a6c;
$custom-light: #6b5897;
$custom-dark: #000000;
JSON
{
  "hex": "#281a6c",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 250.244,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29702,
    "c": 0.13362,
    "h": 282.4
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#281A6C
secondary
#91A141
accent
#E443C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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