#27147B#27147B

#27147B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.159 H 279.7°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#27147B
RGBrgb(39, 20, 123)
HSLhsl(251, 72%, 28%)
HSVhsv(251, 84%, 48%)
CMYKcmyk(68.3%, 83.7%, 0%, 51.8%)
CIE-LABlab(17.28, 39.57, -54.28)
CIE-LCHlch(17.28, 67.17, 306.09°)
OKLaboklab(30.47% 0.0268 -0.1567)
OKLCHoklch(30.47% 0.159 279.7)
XYZxyz(4.6609, 2.3613, 18.9452)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27147B #687B14
analogous
#14347B #27147B #5A147B
triadic
#27147B #7B2714 #147B27
tetradic
#27147B #7B1434 #687B14 #147B5A
square
#27147B #7B1434 #687B14 #147B5A
split-complementary
#27147B #7B5A14 #347B14
monochromatic
#08041A #160B46 #27147B #381DB0 #4D2DDD

Accessibility & contrast

On white

14.26
#27147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27147B
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27147B#FFFFFF#000000##FFFFFF
##27147B1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27147b;
/* rgb */ color: rgb(39, 20, 123);
/* oklch */ color: oklch(30.5% 0.159 279.7);
Tailwind
colors: {
  custom: {
    50: '#6f56a2',
    500: '#27147b',
    950: '#000000',
  },
}
SCSS
$custom: #27147b;
$custom-light: #6f56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27147b",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 251.068,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.15899,
    "h": 279.7
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#27147B
secondary
#9BB13A
accent
#EF39CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27147B

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

Preview Lab → · Contrast checker → · Palette generator →

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