#27186B#27186B

#27186B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.135 H 282.4°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#27186B
RGBrgb(39, 24, 107)
HSLhsl(251, 63%, 26%)
HSVhsv(251, 78%, 42%)
CMYKcmyk(63.6%, 77.6%, 0%, 58%)
CIE-LABlab(16.23, 32.27, -45.66)
CIE-LCHlch(16.23, 55.91, 305.25°)
OKLaboklab(29.21% 0.0289 -0.1316)
OKLCHoklch(29.21% 0.135 282.4)
XYZxyz(3.8164, 2.1459, 14.1202)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27186B #5C6B18
analogous
#18326B #27186B #50186B
triadic
#27186B #6B2718 #186B27
tetradic
#27186B #6B1832 #5C6B18 #186B50
square
#27186B #6B1832 #5C6B18 #186B50
split-complementary
#27186B #6B5018 #326B18
monochromatic
#090619 #150D39 #27186B #39239D #4B2ECF

Accessibility & contrast

On white

14.69
#27186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#27186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27186B
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27186B#FFFFFF#000000##FFFFFF
##27186B1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #27186b;
/* rgb */ color: rgb(39, 24, 107);
/* oklch */ color: oklch(29.2% 0.135 282.4);
Tailwind
colors: {
  custom: {
    50: '#6b5796',
    500: '#27186b',
    950: '#000000',
  },
}
SCSS
$custom: #27186b;
$custom-light: #6b5796;
$custom-dark: #000000;
JSON
{
  "hex": "#27186b",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 250.843,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29206,
    "c": 0.13476,
    "h": 282.4
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#27186B
secondary
#8FA13E
accent
#E641C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27186B

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

Preview Lab → · Contrast checker → · Palette generator →

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