#28126F#28126F

#28126F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.146 H 283.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#28126F
RGBrgb(40, 18, 111)
HSLhsl(254, 72%, 25%)
HSVhsv(254, 84%, 44%)
CMYKcmyk(64%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.65, 36.91, -49.23)
CIE-LCHlch(15.65, 61.53, 306.86°)
OKLaboklab(28.95% 0.0336 -0.1419)
OKLCHoklch(28.95% 0.146 283.3)
XYZxyz(3.9597, 2.0312, 15.2192)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28126F #596F12
analogous
#122A6F #28126F #57126F
triadic
#28126F #6F2812 #126F28
tetradic
#28126F #6F122A #596F12 #126F57
square
#28126F #6F122A #596F12 #126F57
split-complementary
#28126F #6F5712 #2A6F12
monochromatic
#09041A #15093A #28126F #3B1BA4 #4E23D8

Accessibility & contrast

On white

14.93
#28126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#28126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28126F
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28126F#FFFFFF#000000##FFFFFF
##28126F1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28126f;
/* rgb */ color: rgb(40, 18, 111);
/* oklch */ color: oklch(29.0% 0.146 283.3);
Tailwind
colors: {
  custom: {
    50: '#6d5499',
    500: '#28126f',
    950: '#000000',
  },
}
SCSS
$custom: #28126f;
$custom-light: #6d5499;
$custom-dark: #000000;
JSON
{
  "hex": "#28126f",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 254.194,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28953,
    "c": 0.14586,
    "h": 283.3
  },
  "luminance": 0.02031
}

Semantic roles & 50–950 ramp

primary
#28126F
secondary
#8CA637
accent
#EF39C4
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28126F

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

Preview Lab → · Contrast checker → · Palette generator →

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