#27158A#27158A

#27158A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.176 H 277.0°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#27158A
RGBrgb(39, 21, 138)
HSLhsl(249, 74%, 31%)
HSVhsv(249, 85%, 54%)
CMYKcmyk(71.7%, 84.8%, 0%, 45.9%)
CIE-LABlab(19.23, 43.74, -60.54)
CIE-LCHlch(19.23, 74.68, 305.85°)
OKLaboklab(32.34% 0.0215 -0.1749)
OKLCHoklch(32.34% 0.176 277)
XYZxyz(5.6908, 2.8021, 24.2808)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27158A #788A15
analogous
#153D8A #27158A #61158A
triadic
#27158A #8A2715 #158A27
tetradic
#27158A #8A153D #788A15 #158A61
square
#27158A #8A153D #788A15 #158A61
split-complementary
#27158A #8A6115 #3D8A15
monochromatic
#090520 #180D55 #27158A #361DBF #5239E1

Accessibility & contrast

On white

13.46
#27158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#27158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27158A
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27158A#FFFFFF#000000##FFFFFF
##27158A1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #27158a;
/* rgb */ color: rgb(39, 21, 138);
/* oklch */ color: oklch(32.3% 0.176 277.0);
Tailwind
colors: {
  custom: {
    50: '#7257ad',
    500: '#27158a',
    950: '#000000',
  },
}
SCSS
$custom: #27158a;
$custom-light: #7257ad;
$custom-dark: #000000;
JSON
{
  "hex": "#27158a",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 249.231,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32342,
    "c": 0.17623,
    "h": 277
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#27158A
secondary
#AABE3D
accent
#F038D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #27158A

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

Preview Lab → · Contrast checker → · Palette generator →

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