#27138A#27138A

#27138A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.178 H 277.2°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#27138A
RGBrgb(39, 19, 138)
HSLhsl(250, 76%, 31%)
HSVhsv(250, 86%, 54%)
CMYKcmyk(71.7%, 86.2%, 0%, 45.9%)
CIE-LABlab(18.93, 44.62, -61.03)
CIE-LCHlch(18.93, 75.60, 306.17°)
OKLaboklab(32.14% 0.0222 -0.1763)
OKLCHoklch(32.14% 0.178 277.2)
XYZxyz(5.6555, 2.7315, 24.2690)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27138A #768A13
analogous
#133A8A #27138A #62138A
triadic
#27138A #8A2713 #138A27
tetradic
#27138A #8A133A #768A13 #138A62
square
#27138A #8A133A #768A13 #138A62
split-complementary
#27138A #8A6213 #3A8A13
monochromatic
#09041E #180C54 #27138A #361AC0 #5234E3

Accessibility & contrast

On white

13.58
#27138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#27138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27138A
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27138A#FFFFFF#000000##FFFFFF
##27138A1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #27138a;
/* rgb */ color: rgb(39, 19, 138);
/* oklch */ color: oklch(32.1% 0.178 277.2);
Tailwind
colors: {
  custom: {
    50: '#7256ad',
    500: '#27138a',
    950: '#000000',
  },
}
SCSS
$custom: #27138a;
$custom-light: #7256ad;
$custom-dark: #000000;
JSON
{
  "hex": "#27138a",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 250.084,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32137,
    "c": 0.17771,
    "h": 277.2
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#27138A
secondary
#A8BE3A
accent
#F235D3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #27138A

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

Preview Lab → · Contrast checker → · Palette generator →

#27138A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva