#271C86#271C86

#271C86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.165 H 276.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#271C86
RGBrgb(39, 28, 134)
HSLhsl(246, 65%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(70.9%, 79.1%, 0%, 47.5%)
CIE-LABlab(19.97, 38.96, -56.80)
CIE-LCHlch(19.97, 68.88, 304.45°)
OKLaboklab(32.72% 0.0194 -0.1641)
OKLCHoklch(32.72% 0.165 276.7)
XYZxyz(5.5536, 2.9826, 22.8327)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C86 #7B861C
analogous
#1C4686 #271C86 #5C1C86
triadic
#271C86 #86271C #1C8627
tetradic
#271C86 #861C46 #7B861C #1C865C
square
#271C86 #861C46 #7B861C #1C865C
split-complementary
#271C86 #865C1C #46861C
monochromatic
#0A0721 #181153 #271C86 #3627B9 #5444D8

Accessibility & contrast

On white

13.15
#271C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C86
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C86#FFFFFF#000000##FFFFFF
##271C861.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c86;
/* rgb */ color: rgb(39, 28, 134);
/* oklch */ color: oklch(32.7% 0.165 276.7);
Tailwind
colors: {
  custom: {
    50: '#715baa',
    500: '#271c86',
    950: '#000000',
  },
}
SCSS
$custom: #271c86;
$custom-light: #715baa;
$custom-dark: #000000;
JSON
{
  "hex": "#271c86",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 246.226,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32719,
    "c": 0.16529,
    "h": 276.7
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#271C86
secondary
#ADB945
accent
#E83FD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C86

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

Preview Lab → · Contrast checker → · Palette generator →

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