#27177F#27177F

#27177F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.161 H 278.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#27177F
RGBrgb(39, 23, 127)
HSLhsl(249, 69%, 29%)
HSVhsv(249, 82%, 50%)
CMYKcmyk(69.3%, 81.9%, 0%, 50.2%)
CIE-LABlab(18.26, 39.34, -55.21)
CIE-LCHlch(18.26, 67.79, 305.47°)
OKLaboklab(31.29% 0.024 -0.1595)
OKLCHoklch(31.29% 0.161 278.6)
XYZxyz(4.9726, 2.5760, 20.3097)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27177F #6F7F17
analogous
#173B7F #27177F #5B177F
triadic
#27177F #7F2717 #177F27
tetradic
#27177F #7F173B #6F7F17 #177F5B
square
#27177F #7F173B #6F7F17 #177F5B
split-complementary
#27177F #7F5B17 #3B7F17
monochromatic
#08051A #170E4B #27177F #3720B3 #4F36DB

Accessibility & contrast

On white

13.86
#27177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#27177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27177F
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27177F#FFFFFF#000000##FFFFFF
##27177F1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27177f;
/* rgb */ color: rgb(39, 23, 127);
/* oklch */ color: oklch(31.3% 0.161 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f57a5',
    500: '#27177f',
    950: '#000000',
  },
}
SCSS
$custom: #27177f;
$custom-light: #6f57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27177f",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 249.231,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31286,
    "c": 0.16125,
    "h": 278.6
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27177F

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

Preview Lab → · Contrast checker → · Palette generator →

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