#27167B#27167B

#27167B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.157 H 279.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#27167B
RGBrgb(39, 22, 123)
HSLhsl(250, 70%, 28%)
HSVhsv(250, 82%, 48%)
CMYKcmyk(68.3%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.62, 38.57, -53.71)
CIE-LCHlch(17.62, 66.13, 305.68°)
OKLaboklab(30.71% 0.0257 -0.1551)
OKLCHoklch(30.71% 0.157 279.4)
XYZxyz(4.6976, 2.4348, 18.9575)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27167B #6A7B16
analogous
#16377B #27167B #59167B
triadic
#27167B #7B2716 #167B27
tetradic
#27167B #7B1637 #6A7B16 #167B59
square
#27167B #7B1637 #6A7B16 #167B59
split-complementary
#27167B #7B5916 #377B16
monochromatic
#08051A #170D47 #27167B #371FAF #4E31DA

Accessibility & contrast

On white

14.12
#27167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#27167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27167B
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27167B#FFFFFF#000000##FFFFFF
##27167B1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27167b;
/* rgb */ color: rgb(39, 22, 123);
/* oklch */ color: oklch(30.7% 0.157 279.4);
Tailwind
colors: {
  custom: {
    50: '#6e57a2',
    500: '#27167b',
    950: '#000000',
  },
}
SCSS
$custom: #27167b;
$custom-light: #6e57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27167b",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 250.099,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30706,
    "c": 0.15721,
    "h": 279.4
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

primary
#27167B
secondary
#9DB03D
accent
#EC3BCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27167B

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

Preview Lab → · Contrast checker → · Palette generator →

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