#27137B#27137B

#27137B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.160 H 279.8°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#27137B
RGBrgb(39, 19, 123)
HSLhsl(252, 73%, 28%)
HSVhsv(252, 85%, 48%)
CMYKcmyk(68.3%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.12, 40.04, -54.55)
CIE-LCHlch(17.12, 67.67, 306.28°)
OKLaboklab(30.36% 0.0273 -0.1575)
OKLCHoklch(30.36% 0.16 279.8)
XYZxyz(4.6436, 2.3268, 18.9395)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27137B #677B13
analogous
#13337B #27137B #5B137B
triadic
#27137B #7B2713 #137B27
tetradic
#27137B #7B1333 #677B13 #137B5B
square
#27137B #7B1333 #677B13 #137B5B
split-complementary
#27137B #7B5B13 #337B13
monochromatic
#08041B #160B46 #27137B #381BB0 #4D2ADE

Accessibility & contrast

On white

14.33
#27137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#27137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27137B
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27137B#FFFFFF#000000##FFFFFF
##27137B1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27137b;
/* rgb */ color: rgb(39, 19, 123);
/* oklch */ color: oklch(30.4% 0.160 279.8);
Tailwind
colors: {
  custom: {
    50: '#6f55a2',
    500: '#27137b',
    950: '#000000',
  },
}
SCSS
$custom: #27137b;
$custom-light: #6f55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27137b",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 251.538,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30356,
    "c": 0.15983,
    "h": 279.8
  },
  "luminance": 0.02327
}

Semantic roles & 50–950 ramp

primary
#27137B
secondary
#9AB139
accent
#F038CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27137B

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

Preview Lab → · Contrast checker → · Palette generator →

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