#271B81#271B81

#271B81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.160 H 277.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#271B81
RGBrgb(39, 27, 129)
HSLhsl(247, 65%, 31%)
HSVhsv(247, 79%, 51%)
CMYKcmyk(69.8%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.22, 37.86, -54.88)
CIE-LCHlch(19.22, 66.68, 304.60°)
OKLaboklab(32.03% 0.0213 -0.1586)
OKLCHoklch(32.03% 0.16 277.6)
XYZxyz(5.1898, 2.7997, 21.0315)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B81 #75811B
analogous
#1B4281 #271B81 #5A1B81
triadic
#271B81 #81271B #1B8127
tetradic
#271B81 #811B42 #75811B #1B815A
square
#271B81 #811B42 #75811B #1B815A
split-complementary
#271B81 #815A1B #42811B
monochromatic
#08061C #18104E #271B81 #3626B4 #513FD7

Accessibility & contrast

On white

13.46
#271B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B81
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B81#FFFFFF#000000##FFFFFF
##271B811.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271b81;
/* rgb */ color: rgb(39, 27, 129);
/* oklch */ color: oklch(32.0% 0.160 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f5aa7',
    500: '#271b81',
    950: '#000000',
  },
}
SCSS
$custom: #271b81;
$custom-light: #6f5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#271b81",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 247.059,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.15998,
    "h": 277.6
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#271B81
secondary
#A7B543
accent
#E83FD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271B81

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

Preview Lab → · Contrast checker → · Palette generator →

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