#281945#281945

#281945 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.080 H 296.1°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#281945
RGBrgb(40, 25, 69)
HSLhsl(260, 47%, 18%)
HSVhsv(260, 64%, 27%)
CMYKcmyk(42%, 63.8%, 0%, 72.9%)
CIE-LABlab(13.08, 19.19, -25.16)
CIE-LCHlch(13.08, 31.65, 307.33°)
OKLaboklab(25.88% 0.035 -0.0714)
OKLCHoklch(25.88% 0.08 296.1)
XYZxyz(2.2966, 1.5760, 5.8123)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281945 #364519
analogous
#192045 #281945 #3E1945
triadic
#281945 #452819 #194528
tetradic
#281945 #451920 #364519 #19453E
square
#281945 #451920 #364519 #19453E
split-complementary
#281945 #453E19 #204519
monochromatic
#0D0816 #0E0918 #281945 #422972 #5C3A9F

Accessibility & contrast

On white

15.97
#281945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281945
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281945#FFFFFF#000000##FFFFFF
##2819451.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042246
Deuteranopia (green-blind)
#092144
Tritanopia (blue-blind)
#21222C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281945;
/* rgb */ color: rgb(40, 25, 69);
/* oklch */ color: oklch(25.9% 0.080 296.1);
Tailwind
colors: {
  custom: {
    50: '#645679',
    500: '#281945',
    950: '#000000',
  },
}
SCSS
$custom: #281945;
$custom-light: #645679;
$custom-dark: #000000;
JSON
{
  "hex": "#281945",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 69
  },
  "hsl": {
    "h": 260.455,
    "s": 46.809,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25878,
    "c": 0.07954,
    "h": 296.1
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#281945
secondary
#677B3E
accent
#D651A9
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #281945

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

Preview Lab → · Contrast checker → · Palette generator →

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