#27124A#27124A

#27124A is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.098 H 295.6°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#27124A
RGBrgb(39, 18, 74)
HSLhsl(263, 61%, 18%)
HSVhsv(263, 76%, 29%)
CMYKcmyk(47.3%, 75.7%, 0%, 71%)
CIE-LABlab(11.68, 25.09, -30.92)
CIE-LCHlch(11.68, 39.82, 309.05°)
OKLaboklab(24.96% 0.0424 -0.0884)
OKLCHoklch(24.96% 0.098 295.6)
XYZxyz(2.2887, 1.3583, 6.6188)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27124A #354A12
analogous
#12194A #27124A #43124A
triadic
#27124A #4A2712 #124A27
tetradic
#27124A #4A1219 #354A12 #124A43
square
#27124A #4A1219 #354A12 #124A43
split-complementary
#27124A #4A4312 #194A12
monochromatic
#0D0619 #0D0619 #27124A #411E7B #5B2AAC

Accessibility & contrast

On white

16.51
#27124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#27124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27124A
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27124A#FFFFFF#000000##FFFFFF
##27124A1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#1E202C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #27124a;
/* rgb */ color: rgb(39, 18, 74);
/* oklch */ color: oklch(25.0% 0.098 295.6);
Tailwind
colors: {
  custom: {
    50: '#65517d',
    500: '#27124a',
    950: '#000000',
  },
}
SCSS
$custom: #27124a;
$custom-light: #65517d;
$custom-dark: #000000;
JSON
{
  "hex": "#27124a",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 262.5,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24961,
    "c": 0.09801,
    "h": 295.6
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#27124A
secondary
#668335
accent
#E444A8
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #27124A

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

Preview Lab → · Contrast checker → · Palette generator →

#27124A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva