#27124C#27124C

#27124C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.101 H 294.6°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#27124C
RGBrgb(39, 18, 76)
HSLhsl(262, 62%, 18%)
HSVhsv(262, 76%, 30%)
CMYKcmyk(48.7%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.86, 25.72, -32.00)
CIE-LCHlch(11.86, 41.05, 308.78°)
OKLaboklab(25.15% 0.042 -0.0916)
OKLCHoklch(25.15% 0.101 294.6)
XYZxyz(2.3572, 1.3857, 6.9793)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27124C #374C12
analogous
#121A4C #27124C #44124C
triadic
#27124C #4C2712 #124C27
tetradic
#27124C #4C121A #374C12 #124C44
square
#27124C #4C121A #374C12 #124C44
split-complementary
#27124C #4C4412 #1A4C12
monochromatic
#0D0619 #0E061B #27124C #401E7D #5A29AF

Accessibility & contrast

On white

16.44
#27124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#27124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27124C
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27124C#FFFFFF#000000##FFFFFF
##27124C1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#1D202D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #27124c;
/* rgb */ color: rgb(39, 18, 76);
/* oklch */ color: oklch(25.1% 0.101 294.6);
Tailwind
colors: {
  custom: {
    50: '#65517f',
    500: '#27124c',
    950: '#000000',
  },
}
SCSS
$custom: #27124c;
$custom-light: #65517f;
$custom-dark: #000000;
JSON
{
  "hex": "#27124c",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 261.724,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2515,
    "c": 0.10073,
    "h": 294.6
  },
  "luminance": 0.01386
}

Semantic roles & 50–950 ramp

primary
#27124C
secondary
#688535
accent
#E543AA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #27124C

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

Preview Lab → · Contrast checker → · Palette generator →

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