#271B82#271B82

#271B82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.161 H 277.5°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#271B82
RGBrgb(39, 27, 130)
HSLhsl(247, 66%, 31%)
HSVhsv(247, 79%, 51%)
CMYKcmyk(70%, 79.2%, 0%, 49%)
CIE-LABlab(19.33, 38.19, -55.33)
CIE-LCHlch(19.33, 67.23, 304.62°)
OKLaboklab(32.14% 0.021 -0.1599)
OKLCHoklch(32.14% 0.161 277.5)
XYZxyz(5.2566, 2.8264, 21.3833)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B82 #76821B
analogous
#1B4282 #271B82 #5A1B82
triadic
#271B82 #82271B #1B8227
tetradic
#271B82 #821B42 #76821B #1B825A
square
#271B82 #821B42 #76821B #1B825A
split-complementary
#271B82 #825A1B #42821B
monochromatic
#09061D #18104F #271B82 #3626B5 #5240D7

Accessibility & contrast

On white

13.42
#271B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B82
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B82#FFFFFF#000000##FFFFFF
##271B821.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271b82;
/* rgb */ color: rgb(39, 27, 130);
/* oklch */ color: oklch(32.1% 0.161 277.5);
Tailwind
colors: {
  custom: {
    50: '#705aa7',
    500: '#271b82',
    950: '#000000',
  },
}
SCSS
$custom: #271b82;
$custom-light: #705aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#271b82",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 246.99,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.16124,
    "h": 277.5
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#271B82
secondary
#A8B643
accent
#E93FD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B82

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

Preview Lab → · Contrast checker → · Palette generator →

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