#281265#281265

#281265 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.133 H 286.1°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#281265
RGBrgb(40, 18, 101)
HSLhsl(256, 70%, 23%)
HSVhsv(256, 82%, 40%)
CMYKcmyk(60.4%, 82.2%, 0%, 60.4%)
CIE-LABlab(14.53, 33.79, -44.51)
CIE-LCHlch(14.53, 55.88, 307.20°)
OKLaboklab(27.84% 0.0369 -0.1282)
OKLCHoklch(27.84% 0.133 286.1)
XYZxyz(3.4396, 1.8231, 12.4800)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281265 #4F6512
analogous
#122565 #281265 #511265
triadic
#281265 #652812 #126528
tetradic
#281265 #651225 #4F6512 #126551
square
#281265 #651225 #4F6512 #126551
split-complementary
#281265 #655112 #256512
monochromatic
#0A051A #130931 #281265 #3D1B99 #5125CD

Accessibility & contrast

On white

15.39
#281265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281265
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281265#FFFFFF#000000##FFFFFF
##2812651.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#0A2A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281265;
/* rgb */ color: rgb(40, 18, 101);
/* oklch */ color: oklch(27.8% 0.133 286.1);
Tailwind
colors: {
  custom: {
    50: '#6b5392',
    500: '#281265',
    950: '#000000',
  },
}
SCSS
$custom: #281265;
$custom-light: #6b5392;
$custom-dark: #000000;
JSON
{
  "hex": "#281265",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 255.904,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2784,
    "c": 0.1334,
    "h": 286.1
  },
  "luminance": 0.01823
}

Semantic roles & 50–950 ramp

primary
#281265
secondary
#829D36
accent
#ED3BBE
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281265

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

Preview Lab → · Contrast checker → · Palette generator →

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