#28134B#28134B

#28134B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.098 H 295.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#28134B
RGBrgb(40, 19, 75)
HSLhsl(263, 60%, 18%)
HSVhsv(263, 75%, 29%)
CMYKcmyk(46.7%, 74.7%, 0%, 70.6%)
CIE-LABlab(12.12, 25.02, -30.88)
CIE-LCHlch(12.12, 39.74, 309.01°)
OKLaboklab(25.34% 0.0427 -0.0882)
OKLCHoklch(25.34% 0.098 295.8)
XYZxyz(2.3776, 1.4248, 6.8050)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28134B #364B13
analogous
#131A4B #28134B #44134B
triadic
#28134B #4B2813 #134B28
tetradic
#28134B #4B131A #364B13 #134B44
square
#28134B #4B131A #364B13 #134B44
split-complementary
#28134B #4B4413 #1A4B13
monochromatic
#0D0618 #0E071A #28134B #421F7C #5C2CAD

Accessibility & contrast

On white

16.34
#28134B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28134B
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28134B#FFFFFF#000000##FFFFFF
##28134B1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#1F202D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28134b;
/* rgb */ color: rgb(40, 19, 75);
/* oklch */ color: oklch(25.3% 0.098 295.8);
Tailwind
colors: {
  custom: {
    50: '#66527e',
    500: '#28134b',
    950: '#000000',
  },
}
SCSS
$custom: #28134b;
$custom-light: #66527e;
$custom-dark: #000000;
JSON
{
  "hex": "#28134b",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 75
  },
  "hsl": {
    "h": 262.5,
    "s": 59.574,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25338,
    "c": 0.098,
    "h": 295.8
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#28134B
secondary
#678436
accent
#E345A8
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28134B

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

Preview Lab → · Contrast checker → · Palette generator →

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