#281A6E#281A6E

#281A6E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.136 H 281.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#281A6E
RGBrgb(40, 26, 110)
HSLhsl(250, 62%, 27%)
HSVhsv(250, 76%, 43%)
CMYKcmyk(63.6%, 76.4%, 0%, 56.9%)
CIE-LABlab(17.06, 32.25, -46.25)
CIE-LCHlch(17.06, 56.38, 304.89°)
OKLaboklab(29.91% 0.0282 -0.1333)
OKLCHoklch(29.91% 0.136 281.9)
XYZxyz(4.0581, 2.3154, 14.9819)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A6E #606E1A
analogous
#1A366E #281A6E #521A6E
triadic
#281A6E #6E281A #1A6E28
tetradic
#281A6E #6E1A36 #606E1A #1A6E52
square
#281A6E #6E1A36 #606E1A #1A6E52
split-complementary
#281A6E #6E521A #366E1A
monochromatic
#090619 #160E3D #281A6E #3A26A0 #4D34CF

Accessibility & contrast

On white

14.35
#281A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A6E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A6E#FFFFFF#000000##FFFFFF
##281A6E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281a6e;
/* rgb */ color: rgb(40, 26, 110);
/* oklch */ color: oklch(29.9% 0.136 281.9);
Tailwind
colors: {
  custom: {
    50: '#6c5898',
    500: '#281a6e',
    950: '#000000',
  },
}
SCSS
$custom: #281a6e;
$custom-light: #6c5898;
$custom-dark: #000000;
JSON
{
  "hex": "#281a6e",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 250,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29911,
    "c": 0.13628,
    "h": 281.9
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#281A6E
secondary
#93A341
accent
#E543CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #281A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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