#271C87#271C87

#271C87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.167 H 276.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#271C87
RGBrgb(39, 28, 135)
HSLhsl(246, 66%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(71.1%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.09, 39.29, -57.24)
CIE-LCHlch(20.09, 69.43, 304.47°)
OKLaboklab(32.83% 0.0192 -0.1654)
OKLCHoklch(32.83% 0.167 276.6)
XYZxyz(5.6237, 3.0106, 23.2017)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C87 #7C871C
analogous
#1C4787 #271C87 #5D1C87
triadic
#271C87 #87271C #1C8727
tetradic
#271C87 #871C47 #7C871C #1C875D
square
#271C87 #871C47 #7C871C #1C875D
split-complementary
#271C87 #875D1C #47871C
monochromatic
#0A0722 #181154 #271C87 #3627BA #5445D8

Accessibility & contrast

On white

13.11
#271C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#271C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C87
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C87#FFFFFF#000000##FFFFFF
##271C871.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271c87;
/* rgb */ color: rgb(39, 28, 135);
/* oklch */ color: oklch(32.8% 0.167 276.6);
Tailwind
colors: {
  custom: {
    50: '#715bab',
    500: '#271c87',
    950: '#000000',
  },
}
SCSS
$custom: #271c87;
$custom-light: #715bab;
$custom-dark: #000000;
JSON
{
  "hex": "#271c87",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 246.168,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32832,
    "c": 0.16655,
    "h": 276.6
  },
  "luminance": 0.03011
}

Semantic roles & 50–950 ramp

primary
#271C87
secondary
#AEBA45
accent
#E93FD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C87

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

Preview Lab → · Contrast checker → · Palette generator →

#271C87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva