#281267#281267

#281267 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.136 H 285.5°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#281267
RGBrgb(40, 18, 103)
HSLhsl(256, 70%, 24%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(61.2%, 82.5%, 0%, 59.6%)
CIE-LABlab(14.75, 34.42, -45.47)
CIE-LCHlch(14.75, 57.03, 307.12°)
OKLaboklab(28.06% 0.0363 -0.131)
OKLCHoklch(28.06% 0.136 285.5)
XYZxyz(3.5388, 1.8628, 13.0024)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281267 #516712
analogous
#122667 #281267 #521267
triadic
#281267 #672812 #126728
tetradic
#281267 #671226 #516712 #126752
square
#281267 #671226 #516712 #126752
split-complementary
#281267 #675212 #266712
monochromatic
#0A051A #140933 #281267 #3C1B9B #5024CF

Accessibility & contrast

On white

15.30
#281267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281267
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281267#FFFFFF#000000##FFFFFF
##2812671.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#062B3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281267;
/* rgb */ color: rgb(40, 18, 103);
/* oklch */ color: oklch(28.1% 0.136 285.5);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#281267',
    950: '#000000',
  },
}
SCSS
$custom: #281267;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#281267",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 255.529,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28059,
    "c": 0.13592,
    "h": 285.5
  },
  "luminance": 0.01863
}

Semantic roles & 50–950 ramp

primary
#281267
secondary
#849F36
accent
#ED3BBF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281267

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

Preview Lab → · Contrast checker → · Palette generator →

#281267 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva