#281275#281275

#281275 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.153 H 281.9°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#281275
RGBrgb(40, 18, 117)
HSLhsl(253, 73%, 26%)
HSVhsv(253, 85%, 46%)
CMYKcmyk(65.8%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.34, 38.76, -51.97)
CIE-LCHlch(16.34, 64.83, 306.72°)
OKLaboklab(29.64% 0.0315 -0.1499)
OKLCHoklch(29.64% 0.153 281.9)
XYZxyz(4.3013, 2.1678, 17.0179)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281275 #5F7512
analogous
#122E75 #281275 #5A1275
triadic
#281275 #752812 #127528
tetradic
#281275 #75122E #5F7512 #12755A
square
#281275 #75122E #5F7512 #12755A
split-complementary
#281275 #755A12 #2E7512
monochromatic
#09041B #160A40 #281275 #3A1AAA #4D24DD

Accessibility & contrast

On white

14.65
#281275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281275
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281275#FFFFFF#000000##FFFFFF
##2812751.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281275;
/* rgb */ color: rgb(40, 18, 117);
/* oklch */ color: oklch(29.6% 0.153 281.9);
Tailwind
colors: {
  custom: {
    50: '#6e549e',
    500: '#281275',
    950: '#000000',
  },
}
SCSS
$custom: #281275;
$custom-light: #6e549e;
$custom-dark: #000000;
JSON
{
  "hex": "#281275",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 253.333,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29639,
    "c": 0.1532,
    "h": 281.9
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#281275
secondary
#92AC37
accent
#F038C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281275

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

Preview Lab → · Contrast checker → · Palette generator →

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