#27177D#27177D

#27177D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.159 H 278.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#27177D
RGBrgb(39, 23, 125)
HSLhsl(249, 69%, 29%)
HSVhsv(249, 82%, 49%)
CMYKcmyk(68.8%, 81.6%, 0%, 51%)
CIE-LABlab(18.03, 38.70, -54.31)
CIE-LCHlch(18.03, 66.69, 305.47°)
OKLaboklab(31.06% 0.0246 -0.1569)
OKLCHoklch(31.06% 0.159 278.9)
XYZxyz(4.8436, 2.5244, 19.6301)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27177D #6D7D17
analogous
#173A7D #27177D #5A177D
triadic
#27177D #7D2717 #177D27
tetradic
#27177D #7D173A #6D7D17 #177D5A
square
#27177D #7D173A #6D7D17 #177D5A
split-complementary
#27177D #7D5A17 #3A7D17
monochromatic
#08051A #170D49 #27177D #3721B1 #4F35DA

Accessibility & contrast

On white

13.95
#27177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#27177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27177D
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27177D#FFFFFF#000000##FFFFFF
##27177D1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #27177d;
/* rgb */ color: rgb(39, 23, 125);
/* oklch */ color: oklch(31.1% 0.159 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f57a4',
    500: '#27177d',
    950: '#000000',
  },
}
SCSS
$custom: #27177d;
$custom-light: #6f57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27177d",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 249.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31058,
    "c": 0.15878,
    "h": 278.9
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#27177D
secondary
#A0B23E
accent
#EC3CD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27177D

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

Preview Lab → · Contrast checker → · Palette generator →

#27177D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva