#27177E#27177E

#27177E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.160 H 278.7°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#27177E
RGBrgb(39, 23, 126)
HSLhsl(249, 69%, 29%)
HSVhsv(249, 82%, 49%)
CMYKcmyk(69%, 81.7%, 0%, 50.6%)
CIE-LABlab(18.14, 39.02, -54.76)
CIE-LCHlch(18.14, 67.24, 305.47°)
OKLaboklab(31.17% 0.0243 -0.1582)
OKLCHoklch(31.17% 0.16 278.7)
XYZxyz(4.9078, 2.5501, 19.9682)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27177E #6E7E17
analogous
#173B7E #27177E #5B177E
triadic
#27177E #7E2717 #177E27
tetradic
#27177E #7E173B #6E7E17 #177E5B
square
#27177E #7E173B #6E7E17 #177E5B
split-complementary
#27177E #7E5B17 #3B7E17
monochromatic
#08051A #170E4A #27177E #3720B2 #4F35DA

Accessibility & contrast

On white

13.91
#27177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27177E
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27177E#FFFFFF#000000##FFFFFF
##27177E1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27177e;
/* rgb */ color: rgb(39, 23, 126);
/* oklch */ color: oklch(31.2% 0.160 278.7);
Tailwind
colors: {
  custom: {
    50: '#6f57a5',
    500: '#27177e',
    950: '#000000',
  },
}
SCSS
$custom: #27177e;
$custom-light: #6f57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27177e",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 249.32,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31172,
    "c": 0.16001,
    "h": 278.7
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#27177E
secondary
#A1B33E
accent
#EC3CD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27177E

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

Preview Lab → · Contrast checker → · Palette generator →

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