#27178B#27178B

#27178B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.176 H 276.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#27178B
RGBrgb(39, 23, 139)
HSLhsl(248, 72%, 32%)
HSVhsv(248, 83%, 55%)
CMYKcmyk(71.9%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.67, 43.12, -60.44)
CIE-LCHlch(19.67, 74.24, 305.51°)
OKLaboklab(32.68% 0.0204 -0.1747)
OKLCHoklch(32.68% 0.176 276.7)
XYZxyz(5.8018, 2.9077, 24.6766)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27178B #7B8B17
analogous
#17418B #27178B #61178B
triadic
#27178B #8B2717 #178B27
tetradic
#27178B #8B1741 #7B8B17 #178B61
square
#27178B #8B1741 #7B8B17 #178B61
split-complementary
#27178B #8B6117 #418B17
monochromatic
#0A0622 #180E56 #27178B #3620C0 #543DDF

Accessibility & contrast

On white

13.28
#27178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#27178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27178B
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27178B#FFFFFF#000000##FFFFFF
##27178B1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27178b;
/* rgb */ color: rgb(39, 23, 139);
/* oklch */ color: oklch(32.7% 0.176 276.7);
Tailwind
colors: {
  custom: {
    50: '#7258ae',
    500: '#27178b',
    950: '#000000',
  },
}
SCSS
$custom: #27178b;
$custom-light: #7258ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27178b",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 248.276,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32678,
    "c": 0.17584,
    "h": 276.7
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#27178B
secondary
#ADBF3F
accent
#EE39D5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #27178B

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

Preview Lab → · Contrast checker → · Palette generator →

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