#28134D#28134D

#28134D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.101 H 294.8°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#28134D
RGBrgb(40, 19, 77)
HSLhsl(262, 60%, 19%)
HSVhsv(262, 75%, 30%)
CMYKcmyk(48.1%, 75.3%, 0%, 69.8%)
CIE-LABlab(12.30, 25.64, -31.97)
CIE-LCHlch(12.30, 40.98, 308.73°)
OKLaboklab(25.53% 0.0423 -0.0914)
OKLCHoklch(25.53% 0.101 294.8)
XYZxyz(2.4471, 1.4526, 7.1712)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28134D #384D13
analogous
#131B4D #28134D #45134D
triadic
#28134D #4D2813 #134D28
tetradic
#28134D #4D131B #384D13 #134D45
square
#28134D #4D131B #384D13 #134D45
split-complementary
#28134D #4D4513 #1B4D13
monochromatic
#0D0619 #0F071C #28134D #421F7E #5B2BAF

Accessibility & contrast

On white

16.27
#28134D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#28134D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28134D
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28134D#FFFFFF#000000##FFFFFF
##28134D1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#1E212E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28134d;
/* rgb */ color: rgb(40, 19, 77);
/* oklch */ color: oklch(25.5% 0.101 294.8);
Tailwind
colors: {
  custom: {
    50: '#66527f',
    500: '#28134d',
    950: '#000000',
  },
}
SCSS
$custom: #28134d;
$custom-light: #66527f;
$custom-dark: #000000;
JSON
{
  "hex": "#28134d",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 77
  },
  "hsl": {
    "h": 261.724,
    "s": 60.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25525,
    "c": 0.10073,
    "h": 294.8
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#28134D
secondary
#698636
accent
#E444AA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28134D

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

Preview Lab → · Contrast checker → · Palette generator →

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