#271B84#271B84

#271B84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.164 H 277.2°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#271B84
RGBrgb(39, 27, 132)
HSLhsl(247, 66%, 31%)
HSVhsv(247, 80%, 52%)
CMYKcmyk(70.5%, 79.5%, 0%, 48.2%)
CIE-LABlab(19.56, 38.85, -56.22)
CIE-LCHlch(19.56, 68.34, 304.64°)
OKLaboklab(32.36% 0.0205 -0.1625)
OKLCHoklch(32.36% 0.164 277.2)
XYZxyz(5.3921, 2.8807, 22.0972)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B84 #78841B
analogous
#1B4384 #271B84 #5B1B84
triadic
#271B84 #84271B #1B8427
tetradic
#271B84 #841B43 #78841B #1B845B
square
#271B84 #841B43 #78841B #1B845B
split-complementary
#271B84 #845B1B #43841B
monochromatic
#09061E #181151 #271B84 #3625B7 #5241D8

Accessibility & contrast

On white

13.32
#271B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B84
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B84#FFFFFF#000000##FFFFFF
##271B841.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271b84;
/* rgb */ color: rgb(39, 27, 132);
/* oklch */ color: oklch(32.4% 0.164 277.2);
Tailwind
colors: {
  custom: {
    50: '#705aa9',
    500: '#271b84',
    950: '#000000',
  },
}
SCSS
$custom: #271b84;
$custom-light: #705aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#271b84",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 246.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32362,
    "c": 0.16374,
    "h": 277.2
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#271B84
secondary
#AAB743
accent
#E93FD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B84

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

Preview Lab → · Contrast checker → · Palette generator →

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