#271B87#271B87

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

Color values

HEX#271B87
RGBrgb(39, 27, 135)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 53%)
CMYKcmyk(71.1%, 80%, 0%, 47.1%)
CIE-LABlab(19.90, 39.83, -57.55)
CIE-LCHlch(19.90, 69.99, 304.68°)
OKLaboklab(32.7% 0.0197 -0.1663)
OKLCHoklch(32.7% 0.167 276.7)
XYZxyz(5.6004, 2.9640, 23.1939)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B87 #7B871B
analogous
#1B4587 #271B87 #5D1B87
triadic
#271B87 #87271B #1B8727
tetradic
#271B87 #871B45 #7B871B #1B875D
square
#271B87 #871B45 #7B871B #1B875D
split-complementary
#271B87 #875D1B #45871B
monochromatic
#0A0721 #181154 #271B87 #3625BA #5443D9

Accessibility & contrast

On white

13.18
#271B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B87
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B87#FFFFFF#000000##FFFFFF
##271B871.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271b87;
/* rgb */ color: rgb(39, 27, 135);
/* oklch */ color: oklch(32.7% 0.167 276.7);
Tailwind
colors: {
  custom: {
    50: '#715aab',
    500: '#271b87',
    950: '#000000',
  },
}
SCSS
$custom: #271b87;
$custom-light: #715aab;
$custom-dark: #000000;
JSON
{
  "hex": "#271b87",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 246.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.327,
    "c": 0.16749,
    "h": 276.7
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#271B87
secondary
#ADBA44
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B87

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

Preview Lab → · Contrast checker → · Palette generator →

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