#271D86#271D86

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

Color values

HEX#271D86
RGBrgb(39, 29, 134)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 53%)
CMYKcmyk(70.9%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.17, 38.41, -56.48)
CIE-LCHlch(20.17, 68.30, 304.22°)
OKLaboklab(32.86% 0.0189 -0.1632)
OKLCHoklch(32.86% 0.164 276.6)
XYZxyz(5.5777, 3.0308, 22.8407)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D86 #7C861D
analogous
#1D4886 #271D86 #5C1D86
triadic
#271D86 #86271D #1D8627
tetradic
#271D86 #861D48 #7C861D #1D865C
square
#271D86 #861D48 #7C861D #1D865C
split-complementary
#271D86 #865C1D #48861D
monochromatic
#0A0721 #181254 #271D86 #3628B8 #5446D7

Accessibility & contrast

On white

13.07
#271D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D86
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D86#FFFFFF#000000##FFFFFF
##271D861.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d86;
/* rgb */ color: rgb(39, 29, 134);
/* oklch */ color: oklch(32.9% 0.164 276.6);
Tailwind
colors: {
  custom: {
    50: '#705baa',
    500: '#271d86',
    950: '#000000',
  },
}
SCSS
$custom: #271d86;
$custom-light: #705baa;
$custom-dark: #000000;
JSON
{
  "hex": "#271d86",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 245.714,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32855,
    "c": 0.16432,
    "h": 276.6
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#271D86
secondary
#AEB946
accent
#E740D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D86

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

Preview Lab → · Contrast checker → · Palette generator →

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