#27178F#27178F

#27178F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.181 H 276.1°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#27178F
RGBrgb(39, 23, 143)
HSLhsl(248, 72%, 33%)
HSVhsv(248, 84%, 56%)
CMYKcmyk(72.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(20.15, 44.36, -62.14)
CIE-LCHlch(20.15, 76.35, 305.52°)
OKLaboklab(33.15% 0.0192 -0.1796)
OKLCHoklch(33.15% 0.181 276.1)
XYZxyz(6.0994, 3.0267, 26.2440)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27178F #7F8F17
analogous
#17438F #27178F #63178F
triadic
#27178F #8F2717 #178F27
tetradic
#27178F #8F1743 #7F8F17 #178F63
square
#27178F #8F1743 #7F8F17 #178F63
split-complementary
#27178F #8F6317 #438F17
monochromatic
#0A0626 #190F5A #27178F #351FC4 #5540E0

Accessibility & contrast

On white

13.08
#27178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#27178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27178F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27178F#FFFFFF#000000##FFFFFF
##27178F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27178f;
/* rgb */ color: rgb(39, 23, 143);
/* oklch */ color: oklch(33.1% 0.181 276.1);
Tailwind
colors: {
  custom: {
    50: '#7359b1',
    500: '#27178f',
    950: '#000000',
  },
}
SCSS
$custom: #27178f;
$custom-light: #7359b1;
$custom-dark: #000000;
JSON
{
  "hex": "#27178f",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 248,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3315,
    "c": 0.18062,
    "h": 276.1
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#27178F
secondary
#B0C141
accent
#EF39D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #27178F

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

Preview Lab → · Contrast checker → · Palette generator →

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