#271B86#271B86

#271B86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.166 H 276.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#271B86
RGBrgb(39, 27, 134)
HSLhsl(247, 66%, 32%)
HSVhsv(247, 80%, 53%)
CMYKcmyk(70.9%, 79.9%, 0%, 47.5%)
CIE-LABlab(19.79, 39.50, -57.11)
CIE-LCHlch(19.79, 69.44, 304.67°)
OKLaboklab(32.59% 0.0199 -0.165)
OKLCHoklch(32.59% 0.166 276.9)
XYZxyz(5.5303, 2.9359, 22.8249)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B86 #7A861B
analogous
#1B4586 #271B86 #5D1B86
triadic
#271B86 #86271B #1B8627
tetradic
#271B86 #861B45 #7A861B #1B865D
square
#271B86 #861B45 #7A861B #1B865D
split-complementary
#271B86 #865D1B #45861B
monochromatic
#090620 #181153 #271B86 #3625B9 #5342D9

Accessibility & contrast

On white

13.23
#271B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B86
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B86#FFFFFF#000000##FFFFFF
##271B861.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271b86;
/* rgb */ color: rgb(39, 27, 134);
/* oklch */ color: oklch(32.6% 0.166 276.9);
Tailwind
colors: {
  custom: {
    50: '#715aaa',
    500: '#271b86',
    950: '#000000',
  },
}
SCSS
$custom: #271b86;
$custom-light: #715aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#271b86",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 246.729,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32587,
    "c": 0.16624,
    "h": 276.9
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#271B86
secondary
#ACB944
accent
#E93ED6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B86

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

Preview Lab → · Contrast checker → · Palette generator →

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