#281260#281260

#281260 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.127 H 287.6°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#281260
RGBrgb(40, 18, 96)
HSLhsl(257, 68%, 22%)
HSVhsv(257, 81%, 38%)
CMYKcmyk(58.3%, 81.3%, 0%, 62.4%)
CIE-LABlab(13.99, 32.22, -42.08)
CIE-LCHlch(13.99, 53.00, 307.44°)
OKLaboklab(27.3% 0.0385 -0.1211)
OKLCHoklch(27.3% 0.127 287.6)
XYZxyz(3.2021, 1.7281, 11.2289)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281260 #4A6012
analogous
#122360 #281260 #4F1260
triadic
#281260 #602812 #126028
tetradic
#281260 #601223 #4A6012 #12604F
square
#281260 #601223 #4A6012 #12604F
split-complementary
#281260 #604F12 #236012
monochromatic
#0B051A #13082C #281260 #3D1C94 #5325C7

Accessibility & contrast

On white

15.61
#281260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281260
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281260#FFFFFF#000000##FFFFFF
##2812601.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#102838
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281260;
/* rgb */ color: rgb(40, 18, 96);
/* oklch */ color: oklch(27.3% 0.127 287.6);
Tailwind
colors: {
  custom: {
    50: '#6a538e',
    500: '#281260',
    950: '#000000',
  },
}
SCSS
$custom: #281260;
$custom-light: #6a538e;
$custom-dark: #000000;
JSON
{
  "hex": "#281260",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 256.923,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27299,
    "c": 0.12705,
    "h": 287.6
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#281260
secondary
#7C9836
accent
#EB3DBA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #281260

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

Preview Lab → · Contrast checker → · Palette generator →

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