#27178A#27178A

#27178A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.175 H 276.8°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#27178A
RGBrgb(39, 23, 138)
HSLhsl(248, 71%, 32%)
HSVhsv(248, 83%, 54%)
CMYKcmyk(71.7%, 83.3%, 0%, 45.9%)
CIE-LABlab(19.55, 42.81, -60.01)
CIE-LCHlch(19.55, 73.71, 305.50°)
OKLaboklab(32.56% 0.0207 -0.1734)
OKLCHoklch(32.56% 0.175 276.8)
XYZxyz(5.7290, 2.8786, 24.2935)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27178A #7A8A17
analogous
#17418A #27178A #61178A
triadic
#27178A #8A2717 #178A27
tetradic
#27178A #8A1741 #7A8A17 #178A61
square
#27178A #8A1741 #7A8A17 #178A61
split-complementary
#27178A #8A6117 #418A17
monochromatic
#090621 #180E56 #27178A #3620BE #533DDF

Accessibility & contrast

On white

13.33
#27178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27178A
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27178A#FFFFFF#000000##FFFFFF
##27178A1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #27178a;
/* rgb */ color: rgb(39, 23, 138);
/* oklch */ color: oklch(32.6% 0.175 276.8);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#27178a',
    950: '#000000',
  },
}
SCSS
$custom: #27178a;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#27178a",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 248.348,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32561,
    "c": 0.17465,
    "h": 276.8
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#27178A
secondary
#ACBE3F
accent
#EE3AD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #27178A

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

Preview Lab → · Contrast checker → · Palette generator →

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