#281A63#281A63

#281A63 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.121 H 284.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#281A63
RGBrgb(40, 26, 99)
HSLhsl(252, 58%, 25%)
HSVhsv(252, 74%, 39%)
CMYKcmyk(59.6%, 73.7%, 0%, 61.2%)
CIE-LABlab(15.96, 28.54, -40.85)
CIE-LCHlch(15.96, 49.83, 304.94°)
OKLaboklab(28.78% 0.0306 -0.1175)
OKLCHoklch(28.78% 0.121 284.6)
XYZxyz(3.4959, 2.0906, 12.0213)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A63 #55631A
analogous
#1A3163 #281A63 #4D1A63
triadic
#281A63 #63281A #1A6328
tetradic
#281A63 #631A31 #55631A #1A634D
square
#281A63 #631A31 #55631A #1A634D
split-complementary
#281A63 #634D1A #31631A
monochromatic
#0A0618 #140D33 #281A63 #3C2793 #4F33C4

Accessibility & contrast

On white

14.81
#281A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A63
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A63#FFFFFF#000000##FFFFFF
##281A631.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#0C2D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281a63;
/* rgb */ color: rgb(40, 26, 99);
/* oklch */ color: oklch(28.8% 0.121 284.6);
Tailwind
colors: {
  custom: {
    50: '#695890',
    500: '#281a63',
    950: '#000000',
  },
}
SCSS
$custom: #281a63;
$custom-light: #695890;
$custom-dark: #000000;
JSON
{
  "hex": "#281a63",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 251.507,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28784,
    "c": 0.12143,
    "h": 284.6
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#281A63
secondary
#889940
accent
#E246C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #281A63

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

Preview Lab → · Contrast checker → · Palette generator →

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