#281245#281245

#281245 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.091 H 299.4°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#281245
RGBrgb(40, 18, 69)
HSLhsl(266, 59%, 17%)
HSVhsv(266, 74%, 27%)
CMYKcmyk(42%, 73.9%, 0%, 72.9%)
CIE-LABlab(11.37, 23.77, -27.93)
CIE-LCHlch(11.37, 36.68, 310.40°)
OKLaboklab(24.63% 0.0448 -0.0795)
OKLCHoklch(24.63% 0.091 299.4)
XYZxyz(2.1653, 1.3134, 5.7685)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281245 #2F4512
analogous
#121645 #281245 #421245
triadic
#281245 #452812 #124528
tetradic
#281245 #451216 #2F4512 #124542
square
#281245 #451216 #2F4512 #124542
split-complementary
#281245 #454212 #164512
monochromatic
#0E0618 #0E0618 #281245 #441F76 #602BA6

Accessibility & contrast

On white

16.63
#281245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#281245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281245
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281245#FFFFFF#000000##FFFFFF
##2812451.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#001E44
Tritanopia (blue-blind)
#211E29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #281245;
/* rgb */ color: rgb(40, 18, 69);
/* oklch */ color: oklch(24.6% 0.091 299.4);
Tailwind
colors: {
  custom: {
    50: '#655179',
    500: '#281245',
    950: '#000000',
  },
}
SCSS
$custom: #281245;
$custom-light: #655179;
$custom-dark: #000000;
JSON
{
  "hex": "#281245",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 265.882,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2463,
    "c": 0.09131,
    "h": 299.4
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#281245
secondary
#5E7E35
accent
#E2469F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #281245

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

Preview Lab → · Contrast checker → · Palette generator →

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