#27158E#27158E

#27158E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.181 H 276.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#27158E
RGBrgb(39, 21, 142)
HSLhsl(249, 74%, 32%)
HSVhsv(249, 85%, 56%)
CMYKcmyk(72.5%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.72, 44.96, -62.23)
CIE-LCHlch(19.72, 76.77, 305.85°)
OKLaboklab(32.82% 0.0202 -0.1798)
OKLCHoklch(32.82% 0.181 276.4)
XYZxyz(5.9858, 2.9201, 25.8341)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27158E #7C8E15
analogous
#153F8E #27158E #64158E
triadic
#27158E #8E2715 #158E27
tetradic
#27158E #8E153F #7C8E15 #158E64
square
#27158E #8E153F #7C8E15 #158E64
split-complementary
#27158E #8E6415 #3F8E15
monochromatic
#0A0523 #180D59 #27158E #361DC3 #543BE2

Accessibility & contrast

On white

13.26
#27158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#27158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27158E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27158E#FFFFFF#000000##FFFFFF
##27158E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27158e;
/* rgb */ color: rgb(39, 21, 142);
/* oklch */ color: oklch(32.8% 0.181 276.4);
Tailwind
colors: {
  custom: {
    50: '#7358b0',
    500: '#27158e',
    950: '#000000',
  },
}
SCSS
$custom: #27158e;
$custom-light: #7358b0;
$custom-dark: #000000;
JSON
{
  "hex": "#27158e",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 248.926,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32818,
    "c": 0.18095,
    "h": 276.4
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#27158E
secondary
#AEC23D
accent
#F137D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #27158E

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

Preview Lab → · Contrast checker → · Palette generator →

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