#271787#271787

#271787 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.171 H 277.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#271787
RGBrgb(39, 23, 135)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 53%)
CMYKcmyk(71.1%, 83%, 0%, 47.1%)
CIE-LABlab(19.19, 41.87, -58.72)
CIE-LCHlch(19.19, 72.11, 305.49°)
OKLaboklab(32.21% 0.0216 -0.1697)
OKLCHoklch(32.21% 0.171 277.2)
XYZxyz(5.5149, 2.7929, 23.1654)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271787 #778717
analogous
#173F87 #271787 #5F1787
triadic
#271787 #872717 #178727
tetradic
#271787 #87173F #778717 #17875F
square
#271787 #87173F #778717 #17875F
split-complementary
#271787 #875F17 #3F8717
monochromatic
#09051E #180E53 #271787 #3620BB #523BDE

Accessibility & contrast

On white

13.47
#271787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271787
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271787#FFFFFF#000000##FFFFFF
##2717871.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271787;
/* rgb */ color: rgb(39, 23, 135);
/* oklch */ color: oklch(32.2% 0.171 277.2);
Tailwind
colors: {
  custom: {
    50: '#7158ab',
    500: '#271787',
    950: '#000000',
  },
}
SCSS
$custom: #271787;
$custom-light: #7158ab;
$custom-dark: #000000;
JSON
{
  "hex": "#271787",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 248.571,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3221,
    "c": 0.17103,
    "h": 277.2
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#271787
secondary
#A9BB3F
accent
#EE3AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271787

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

Preview Lab → · Contrast checker → · Palette generator →

#271787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva