#27159E#27159E

#27159E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.8% C 0.199 H 274.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#27159E
RGBrgb(39, 21, 158)
HSLhsl(248, 77%, 35%)
HSVhsv(248, 87%, 62%)
CMYKcmyk(75.3%, 86.7%, 0%, 38%)
CIE-LABlab(21.71, 49.74, -68.81)
CIE-LCHlch(21.71, 84.91, 305.86°)
OKLaboklab(34.75% 0.0152 -0.1989)
OKLCHoklch(34.75% 0.199 274.4)
XYZxyz(7.2744, 3.4355, 32.6209)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27159E #8C9E15
analogous
#15489E #27159E #6B159E
triadic
#27159E #9E2715 #159E27
tetradic
#27159E #9E1548 #8C9E15 #159E6B
square
#27159E #9E1548 #8C9E15 #159E6B
split-complementary
#27159E #9E6B15 #489E15
monochromatic
#0C0732 #1A0E68 #27159E #341CD4 #5C47E7

Accessibility & contrast

On white

12.45
#27159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#27159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27159E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27159E#FFFFFF#000000##FFFFFF
##27159E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27159e;
/* rgb */ color: rgb(39, 21, 158);
/* oklch */ color: oklch(34.8% 0.199 274.4);
Tailwind
colors: {
  custom: {
    50: '#7759bc',
    500: '#27159e',
    950: '#000000',
  },
}
SCSS
$custom: #27159e;
$custom-light: #7759bc;
$custom-dark: #000000;
JSON
{
  "hex": "#27159e",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 247.883,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34753,
    "c": 0.19948,
    "h": 274.4
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#27159E
secondary
#B7C747
accent
#F335DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #27159E

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

Preview Lab → · Contrast checker → · Palette generator →

#27159E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva