#27165B#27165B

#27165B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.116 H 287.4°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#27165B
RGBrgb(39, 22, 91)
HSLhsl(255, 61%, 22%)
HSVhsv(255, 76%, 36%)
CMYKcmyk(57.1%, 75.8%, 0%, 64.3%)
CIE-LABlab(14.18, 28.15, -38.44)
CIE-LCHlch(14.18, 47.64, 306.21°)
OKLaboklab(27.25% 0.0345 -0.1105)
OKLCHoklch(27.25% 0.116 287.4)
XYZxyz(3.0114, 1.7603, 10.0766)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27165B #4A5B16
analogous
#16275B #27165B #4A165B
triadic
#27165B #5B2716 #165B27
tetradic
#27165B #5B1627 #4A5B16 #165B4A
square
#27165B #5B1627 #4A5B16 #165B4A
split-complementary
#27165B #5B4A16 #275B16
monochromatic
#0B0619 #120A2A #27165B #3C228C #512EBE

Accessibility & contrast

On white

15.53
#27165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#27165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27165B
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27165B#FFFFFF#000000##FFFFFF
##27165B1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#122836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27165b;
/* rgb */ color: rgb(39, 22, 91);
/* oklch */ color: oklch(27.2% 0.116 287.4);
Tailwind
colors: {
  custom: {
    50: '#68558a',
    500: '#27165b',
    950: '#000000',
  },
}
SCSS
$custom: #27165b;
$custom-light: #68558a;
$custom-dark: #000000;
JSON
{
  "hex": "#27165b",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 254.783,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27247,
    "c": 0.11574,
    "h": 287.4
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#27165B
secondary
#7D923B
accent
#E444BD
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #27165B

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

Preview Lab → · Contrast checker → · Palette generator →

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