#27124B#27124B

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

Color values

HEX#27124B
RGBrgb(39, 18, 75)
HSLhsl(262, 61%, 18%)
HSVhsv(262, 76%, 29%)
CMYKcmyk(48%, 76%, 0%, 70.6%)
CIE-LABlab(11.77, 25.40, -31.46)
CIE-LCHlch(11.77, 40.44, 308.91°)
OKLaboklab(25.06% 0.0422 -0.09)
OKLCHoklch(25.06% 0.099 295.1)
XYZxyz(2.3227, 1.3719, 6.7977)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27124B #364B12
analogous
#12194B #27124B #43124B
triadic
#27124B #4B2712 #124B27
tetradic
#27124B #4B1219 #364B12 #124B43
square
#27124B #4B1219 #364B12 #124B43
split-complementary
#27124B #4B4312 #194B12
monochromatic
#0D0619 #0D061A #27124B #411E7C #5A2AAE

Accessibility & contrast

On white

16.48
#27124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27124B
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27124B#FFFFFF#000000##FFFFFF
##27124B1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#1D202C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #27124b;
/* rgb */ color: rgb(39, 18, 75);
/* oklch */ color: oklch(25.1% 0.099 295.1);
Tailwind
colors: {
  custom: {
    50: '#65517e',
    500: '#27124b',
    950: '#000000',
  },
}
SCSS
$custom: #27124b;
$custom-light: #65517e;
$custom-dark: #000000;
JSON
{
  "hex": "#27124b",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 262.105,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25055,
    "c": 0.09938,
    "h": 295.1
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#27124B
secondary
#678435
accent
#E443A9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #27124B

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

Preview Lab → · Contrast checker → · Palette generator →

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