#28134F#28134F

#28134F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.103 H 293.9°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#28134F
RGBrgb(40, 19, 79)
HSLhsl(261, 61%, 19%)
HSVhsv(261, 76%, 31%)
CMYKcmyk(49.4%, 75.9%, 0%, 69%)
CIE-LABlab(12.49, 26.27, -33.04)
CIE-LCHlch(12.49, 42.22, 308.49°)
OKLaboklab(25.72% 0.0419 -0.0946)
OKLCHoklch(25.72% 0.103 293.9)
XYZxyz(2.5188, 1.4813, 7.5488)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28134F #3A4F13
analogous
#131C4F #28134F #46134F
triadic
#28134F #4F2813 #134F28
tetradic
#28134F #4F131C #3A4F13 #134F46
square
#28134F #4F131C #3A4F13 #134F46
split-complementary
#28134F #4F4613 #1C4F13
monochromatic
#0C0619 #0F071E #28134F #411F80 #5A2BB2

Accessibility & contrast

On white

16.20
#28134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#28134F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28134F
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28134F#FFFFFF#000000##FFFFFF
##28134F1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#1D222F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28134f;
/* rgb */ color: rgb(40, 19, 79);
/* oklch */ color: oklch(25.7% 0.103 293.9);
Tailwind
colors: {
  custom: {
    50: '#665281',
    500: '#28134f',
    950: '#000000',
  },
}
SCSS
$custom: #28134f;
$custom-light: #665281;
$custom-dark: #000000;
JSON
{
  "hex": "#28134f",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 261,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25715,
    "c": 0.10345,
    "h": 293.9
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#28134F
secondary
#6B8836
accent
#E443AC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28134F

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

Preview Lab → · Contrast checker → · Palette generator →

#28134F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva