#28124F#28124F

#28124F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.105 H 294.2°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#28124F
RGBrgb(40, 18, 79)
HSLhsl(262, 63%, 19%)
HSVhsv(262, 77%, 31%)
CMYKcmyk(49.4%, 77.2%, 0%, 69%)
CIE-LABlab(12.27, 26.87, -33.39)
CIE-LCHlch(12.27, 42.86, 308.82°)
OKLaboklab(25.56% 0.0431 -0.0956)
OKLCHoklch(25.56% 0.105 294.2)
XYZxyz(2.5023, 1.4482, 7.5433)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28124F #394F12
analogous
#121B4F #28124F #47124F
triadic
#28124F #4F2812 #124F28
tetradic
#28124F #4F121B #394F12 #124F47
square
#28124F #4F121B #394F12 #124F47
split-complementary
#28124F #4F4712 #1B4F12
monochromatic
#0D0619 #0F071D #28124F #411D81 #5A29B3

Accessibility & contrast

On white

16.28
#28124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#28124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28124F
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28124F#FFFFFF#000000##FFFFFF
##28124F1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#1D212F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28124f;
/* rgb */ color: rgb(40, 18, 79);
/* oklch */ color: oklch(25.6% 0.105 294.2);
Tailwind
colors: {
  custom: {
    50: '#665281',
    500: '#28124f',
    950: '#000000',
  },
}
SCSS
$custom: #28124f;
$custom-light: #665281;
$custom-dark: #000000;
JSON
{
  "hex": "#28124f",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 261.639,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25562,
    "c": 0.10485,
    "h": 294.2
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#28124F
secondary
#6A8835
accent
#E642AB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28124F

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

Preview Lab → · Contrast checker → · Palette generator →

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