#27154B#27154B

#27154B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.095 H 294.0°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#27154B
RGBrgb(39, 21, 75)
HSLhsl(260, 56%, 19%)
HSVhsv(260, 72%, 29%)
CMYKcmyk(48%, 72%, 0%, 70.6%)
CIE-LABlab(12.45, 23.53, -30.35)
CIE-LCHlch(12.45, 38.40, 307.78°)
OKLaboklab(25.55% 0.0385 -0.0867)
OKLCHoklch(25.55% 0.095 294)
XYZxyz(2.3745, 1.4756, 6.8150)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27154B #394B15
analogous
#151E4B #27154B #42154B
triadic
#27154B #4B2715 #154B27
tetradic
#27154B #4B151E #394B15 #154B42
square
#27154B #4B151E #394B15 #154B42
split-complementary
#27154B #4B4215 #1E4B15
monochromatic
#0C0718 #0E081B #27154B #40227B #5930AB

Accessibility & contrast

On white

16.21
#27154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#27154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27154B
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27154B#FFFFFF#000000##FFFFFF
##27154B1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#1D222D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #27154b;
/* rgb */ color: rgb(39, 21, 75);
/* oklch */ color: oklch(25.5% 0.095 294.0);
Tailwind
colors: {
  custom: {
    50: '#65537e',
    500: '#27154b',
    950: '#000000',
  },
}
SCSS
$custom: #27154b;
$custom-light: #65537e;
$custom-dark: #000000;
JSON
{
  "hex": "#27154b",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 260,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25546,
    "c": 0.09489,
    "h": 294
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#27154B
secondary
#6A8339
accent
#E048AD
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #27154B

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

Preview Lab → · Contrast checker → · Palette generator →

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