#271D87#271D87

#271D87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.166 H 276.5°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#271D87
RGBrgb(39, 29, 135)
HSLhsl(246, 65%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(71.1%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.28, 38.74, -56.92)
CIE-LCHlch(20.28, 68.86, 304.24°)
OKLaboklab(32.97% 0.0186 -0.1645)
OKLCHoklch(32.97% 0.166 276.5)
XYZxyz(5.6478, 3.0588, 23.2097)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D87 #7D871D
analogous
#1D4887 #271D87 #5C1D87
triadic
#271D87 #87271D #1D8727
tetradic
#271D87 #871D48 #7D871D #1D875C
square
#271D87 #871D48 #7D871D #1D875C
split-complementary
#271D87 #875C1D #48871D
monochromatic
#0A0722 #181255 #271D87 #3628B9 #5547D7

Accessibility & contrast

On white

13.03
#271D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D87
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D87#FFFFFF#000000##FFFFFF
##271D871.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d87;
/* rgb */ color: rgb(39, 29, 135);
/* oklch */ color: oklch(33.0% 0.166 276.5);
Tailwind
colors: {
  custom: {
    50: '#715bab',
    500: '#271d87',
    950: '#000000',
  },
}
SCSS
$custom: #271d87;
$custom-light: #715bab;
$custom-dark: #000000;
JSON
{
  "hex": "#271d87",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 245.66,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32966,
    "c": 0.16558,
    "h": 276.5
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#271D87
secondary
#AFB946
accent
#E840D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D87

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

Preview Lab → · Contrast checker → · Palette generator →

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