#27158C#27158C

#27158C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.179 H 276.7°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#27158C
RGBrgb(39, 21, 140)
HSLhsl(249, 74%, 32%)
HSVhsv(249, 85%, 55%)
CMYKcmyk(72.1%, 85%, 0%, 45.1%)
CIE-LABlab(19.48, 44.35, -61.38)
CIE-LCHlch(19.48, 75.73, 305.85°)
OKLaboklab(32.58% 0.0209 -0.1774)
OKLCHoklch(32.58% 0.179 276.7)
XYZxyz(5.8369, 2.8606, 25.0504)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27158C #7A8C15
analogous
#153F8C #27158C #63158C
triadic
#27158C #8C2715 #158C27
tetradic
#27158C #8C153F #7A8C15 #158C63
square
#27158C #8C153F #7A8C15 #158C63
split-complementary
#27158C #8C6315 #3F8C15
monochromatic
#090522 #180D57 #27158C #361DC1 #533AE1

Accessibility & contrast

On white

13.36
#27158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#27158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27158C
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27158C#FFFFFF#000000##FFFFFF
##27158C1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #27158c;
/* rgb */ color: rgb(39, 21, 140);
/* oklch */ color: oklch(32.6% 0.179 276.7);
Tailwind
colors: {
  custom: {
    50: '#7357af',
    500: '#27158c',
    950: '#000000',
  },
}
SCSS
$custom: #27158c;
$custom-light: #7357af;
$custom-dark: #000000;
JSON
{
  "hex": "#27158c",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 249.076,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3258,
    "c": 0.17859,
    "h": 276.7
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#27158C
secondary
#ACC03D
accent
#F137D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #27158C

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

Preview Lab → · Contrast checker → · Palette generator →

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