#27178C#27178C

#27178C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.177 H 276.5°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#27178C
RGBrgb(39, 23, 140)
HSLhsl(248, 72%, 32%)
HSVhsv(248, 84%, 55%)
CMYKcmyk(72.1%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.79, 43.43, -60.86)
CIE-LCHlch(19.79, 74.77, 305.51°)
OKLaboklab(32.8% 0.0201 -0.1759)
OKLCHoklch(32.8% 0.177 276.5)
XYZxyz(5.8752, 2.9370, 25.0631)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27178C #7C8C17
analogous
#17428C #27178C #62178C
triadic
#27178C #8C2717 #178C27
tetradic
#27178C #8C1742 #7C8C17 #178C62
square
#27178C #8C1742 #7C8C17 #178C62
split-complementary
#27178C #8C6217 #428C17
monochromatic
#0A0623 #180E57 #27178C #3620C1 #543EDF

Accessibility & contrast

On white

13.23
#27178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#27178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27178C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27178C#FFFFFF#000000##FFFFFF
##27178C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27178c;
/* rgb */ color: rgb(39, 23, 140);
/* oklch */ color: oklch(32.8% 0.177 276.5);
Tailwind
colors: {
  custom: {
    50: '#7258af',
    500: '#27178c',
    950: '#000000',
  },
}
SCSS
$custom: #27178c;
$custom-light: #7258af;
$custom-dark: #000000;
JSON
{
  "hex": "#27178c",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 248.205,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32796,
    "c": 0.17704,
    "h": 276.5
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#27178C
secondary
#AEBF3F
accent
#EF39D6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #27178C

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

Preview Lab → · Contrast checker → · Palette generator →

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