#27179D#27179D

#27179D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.197 H 274.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#27179D
RGBrgb(39, 23, 157)
HSLhsl(247, 74%, 35%)
HSVhsv(247, 85%, 62%)
CMYKcmyk(75.2%, 85.4%, 0%, 38.4%)
CIE-LABlab(21.86, 48.62, -67.94)
CIE-LCHlch(21.86, 83.55, 305.59°)
OKLaboklab(34.82% 0.015 -0.1964)
OKLCHoklch(34.82% 0.197 274.4)
XYZxyz(7.2269, 3.4777, 32.1821)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27179D #8D9D17
analogous
#174A9D #27179D #6A179D
triadic
#27179D #9D2717 #179D27
tetradic
#27179D #9D174A #8D9D17 #179D6A
square
#27179D #9D174A #8D9D17 #179D6A
split-complementary
#27179D #9D6A17 #4A9D17
monochromatic
#0C0732 #1A0F68 #27179D #341FD2 #5C4AE4

Accessibility & contrast

On white

12.38
#27179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#27179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27179D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27179D#FFFFFF#000000##FFFFFF
##27179D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27179d;
/* rgb */ color: rgb(39, 23, 157);
/* oklch */ color: oklch(34.8% 0.197 274.4);
Tailwind
colors: {
  custom: {
    50: '#765abb',
    500: '#27179d',
    950: '#000000',
  },
}
SCSS
$custom: #27179d;
$custom-light: #765abb;
$custom-dark: #000000;
JSON
{
  "hex": "#27179d",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 247.164,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34823,
    "c": 0.19699,
    "h": 274.4
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#27179D
secondary
#B7C64A
accent
#F137DB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #27179D

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

Preview Lab → · Contrast checker → · Palette generator →

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