#281254#281254

#281254 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.111 H 292.1°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#281254
RGBrgb(40, 18, 84)
HSLhsl(260, 65%, 20%)
HSVhsv(260, 79%, 33%)
CMYKcmyk(52.4%, 78.6%, 0%, 67.1%)
CIE-LABlab(12.76, 28.44, -36.02)
CIE-LCHlch(12.76, 45.90, 308.29°)
OKLaboklab(26.06% 0.0419 -0.1033)
OKLCHoklch(26.06% 0.111 292.1)
XYZxyz(2.6912, 1.5237, 8.5381)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281254 #3E5412
analogous
#121D54 #281254 #491254
triadic
#281254 #542812 #125428
tetradic
#281254 #54121D #3E5412 #125449
square
#281254 #54121D #3E5412 #125449
split-complementary
#281254 #544912 #1D5412
monochromatic
#0C0519 #100722 #281254 #401D86 #5828B9

Accessibility & contrast

On white

16.09
#281254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#281254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281254
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281254#FFFFFF#000000##FFFFFF
##2812541.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#1A2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281254;
/* rgb */ color: rgb(40, 18, 84);
/* oklch */ color: oklch(26.1% 0.111 292.1);
Tailwind
colors: {
  custom: {
    50: '#675285',
    500: '#281254',
    950: '#000000',
  },
}
SCSS
$custom: #281254;
$custom-light: #675285;
$custom-dark: #000000;
JSON
{
  "hex": "#281254",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 260,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26055,
    "c": 0.11148,
    "h": 292.1
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#281254
secondary
#708D35
accent
#E840B0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281254

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

Preview Lab → · Contrast checker → · Palette generator →

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