#271B89#271B89

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

Color values

HEX#271B89
RGBrgb(39, 27, 137)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 54%)
CMYKcmyk(71.5%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.13, 40.48, -58.43)
CIE-LCHlch(20.13, 71.08, 304.71°)
OKLaboklab(32.93% 0.0191 -0.1689)
OKLCHoklch(32.93% 0.17 276.5)
XYZxyz(5.7425, 3.0208, 23.9425)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B89 #7D891B
analogous
#1B4689 #271B89 #5E1B89
triadic
#271B89 #89271B #1B8927
tetradic
#271B89 #891B46 #7D891B #1B895E
square
#271B89 #891B46 #7D891B #1B895E
split-complementary
#271B89 #895E1B #46891B
monochromatic
#0A0723 #181156 #271B89 #3625BC #5544DA

Accessibility & contrast

On white

13.09
#271B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B89
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B89#FFFFFF#000000##FFFFFF
##271B891.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271b89;
/* rgb */ color: rgb(39, 27, 137);
/* oklch */ color: oklch(32.9% 0.170 276.5);
Tailwind
colors: {
  custom: {
    50: '#715aad',
    500: '#271b89',
    950: '#000000',
  },
}
SCSS
$custom: #271b89;
$custom-light: #715aad;
$custom-dark: #000000;
JSON
{
  "hex": "#271b89",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 246.545,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.16996,
    "h": 276.5
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271B89

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

Preview Lab → · Contrast checker → · Palette generator →

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