#28137F#28137F

#28137F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.164 H 279.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#28137F
RGBrgb(40, 19, 127)
HSLhsl(252, 74%, 29%)
HSVhsv(252, 85%, 50%)
CMYKcmyk(68.5%, 85%, 0%, 50.2%)
CIE-LABlab(17.69, 41.37, -56.15)
CIE-LCHlch(17.69, 69.74, 306.38°)
OKLaboklab(30.91% 0.0275 -0.1621)
OKLCHoklch(30.91% 0.164 279.6)
XYZxyz(4.9375, 2.4488, 20.2870)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28137F #6A7F13
analogous
#13347F #28137F #5E137F
triadic
#28137F #7F2813 #137F28
tetradic
#28137F #7F1334 #6A7F13 #137F5E
square
#28137F #7F1334 #6A7F13 #137F5E
split-complementary
#28137F #7F5E13 #347F13
monochromatic
#08041B #170B4A #28137F #391BB4 #502DE0

Accessibility & contrast

On white

14.10
#28137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#28137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28137F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28137F#FFFFFF#000000##FFFFFF
##28137F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28137f;
/* rgb */ color: rgb(40, 19, 127);
/* oklch */ color: oklch(30.9% 0.164 279.6);
Tailwind
colors: {
  custom: {
    50: '#7055a5',
    500: '#28137f',
    950: '#000000',
  },
}
SCSS
$custom: #28137f;
$custom-light: #7055a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28137f",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 251.667,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30911,
    "c": 0.16444,
    "h": 279.6
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#28137F
secondary
#9DB439
accent
#F137CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28137F

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

Preview Lab → · Contrast checker → · Palette generator →

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