#27158F#27158F

#27158F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.182 H 276.3°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#27158F
RGBrgb(39, 21, 143)
HSLhsl(249, 74%, 32%)
HSVhsv(249, 85%, 56%)
CMYKcmyk(72.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.84, 45.26, -62.65)
CIE-LCHlch(19.84, 77.29, 305.85°)
OKLaboklab(32.94% 0.0199 -0.181)
OKLCHoklch(32.94% 0.182 276.3)
XYZxyz(6.0612, 2.9503, 26.2313)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27158F #7D8F15
analogous
#15408F #27158F #64158F
triadic
#27158F #8F2715 #158F27
tetradic
#27158F #8F1540 #7D8F15 #158F64
square
#27158F #8F1540 #7D8F15 #158F64
split-complementary
#27158F #8F6415 #408F15
monochromatic
#0A0524 #180D5A #27158F #361DC4 #553CE2

Accessibility & contrast

On white

13.21
#27158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#27158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27158F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27158F#FFFFFF#000000##FFFFFF
##27158F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27158f;
/* rgb */ color: rgb(39, 21, 143);
/* oklch */ color: oklch(32.9% 0.182 276.3);
Tailwind
colors: {
  custom: {
    50: '#7358b1',
    500: '#27158f',
    950: '#000000',
  },
}
SCSS
$custom: #27158f;
$custom-light: #7358b1;
$custom-dark: #000000;
JSON
{
  "hex": "#27158f",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 248.852,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.18213,
    "h": 276.3
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#27158F
secondary
#AFC23E
accent
#F137D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #27158F

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

Preview Lab → · Contrast checker → · Palette generator →

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