#28134C#28134C

#28134C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.099 H 295.3°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#28134C
RGBrgb(40, 19, 76)
HSLhsl(262, 60%, 19%)
HSVhsv(262, 75%, 30%)
CMYKcmyk(47.4%, 75%, 0%, 70.2%)
CIE-LABlab(12.21, 25.33, -31.43)
CIE-LCHlch(12.21, 40.36, 308.87°)
OKLaboklab(25.43% 0.0425 -0.0898)
OKLCHoklch(25.43% 0.099 295.3)
XYZxyz(2.4121, 1.4386, 6.9867)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28134C #374C13
analogous
#131A4C #28134C #44134C
triadic
#28134C #4C2813 #134C28
tetradic
#28134C #4C131A #374C13 #134C44
square
#28134C #4C131A #374C13 #134C44
split-complementary
#28134C #4C4413 #1A4C13
monochromatic
#0D0618 #0E071B #28134C #421F7D #5C2BAE

Accessibility & contrast

On white

16.31
#28134C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28134C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28134C#FFFFFF#000000##FFFFFF
##28134C1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#1E212D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28134c;
/* rgb */ color: rgb(40, 19, 76);
/* oklch */ color: oklch(25.4% 0.099 295.3);
Tailwind
colors: {
  custom: {
    50: '#66527f',
    500: '#28134c',
    950: '#000000',
  },
}
SCSS
$custom: #28134c;
$custom-light: #66527f;
$custom-dark: #000000;
JSON
{
  "hex": "#28134c",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 76
  },
  "hsl": {
    "h": 262.105,
    "s": 60,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25431,
    "c": 0.09937,
    "h": 295.3
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#28134C
secondary
#688536
accent
#E345A9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28134C

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

Preview Lab → · Contrast checker → · Palette generator →

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