#27137D#27137D

#27137D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 279.4°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#27137D
RGBrgb(39, 19, 125)
HSLhsl(251, 74%, 28%)
HSVhsv(251, 85%, 49%)
CMYKcmyk(68.8%, 84.8%, 0%, 51%)
CIE-LABlab(17.35, 40.66, -55.43)
CIE-LCHlch(17.35, 68.74, 306.26°)
OKLaboklab(30.59% 0.0266 -0.16)
OKLCHoklch(30.59% 0.162 279.4)
XYZxyz(4.7701, 2.3774, 19.6056)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27137D #697D13
analogous
#13347D #27137D #5C137D
triadic
#27137D #7D2713 #137D27
tetradic
#27137D #7D1334 #697D13 #137D5C
square
#27137D #7D1334 #697D13 #137D5C
split-complementary
#27137D #7D5C13 #347D13
monochromatic
#08041B #160B48 #27137D #381BB2 #4D2CDF

Accessibility & contrast

On white

14.23
#27137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#27137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27137D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27137D#FFFFFF#000000##FFFFFF
##27137D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27137d;
/* rgb */ color: rgb(39, 19, 125);
/* oklch */ color: oklch(30.6% 0.162 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f55a4',
    500: '#27137d',
    950: '#000000',
  },
}
SCSS
$custom: #27137d;
$custom-light: #6f55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27137d",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 251.321,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30591,
    "c": 0.16224,
    "h": 279.4
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27137D

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

Preview Lab → · Contrast checker → · Palette generator →

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