#271A86#271A86

#271A86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.167 H 277.0°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#271A86
RGBrgb(39, 26, 134)
HSLhsl(247, 68%, 31%)
HSVhsv(247, 81%, 53%)
CMYKcmyk(70.9%, 80.6%, 0%, 47.5%)
CIE-LABlab(19.60, 40.03, -57.41)
CIE-LCHlch(19.60, 69.99, 304.89°)
OKLaboklab(32.46% 0.0205 -0.1659)
OKLCHoklch(32.46% 0.167 277)
XYZxyz(5.5078, 2.8909, 22.8174)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A86 #79861A
analogous
#1A4386 #271A86 #5D1A86
triadic
#271A86 #86271A #1A8627
tetradic
#271A86 #861A43 #79861A #1A865D
square
#271A86 #861A43 #79861A #1A865D
split-complementary
#271A86 #865D1A #43861A
monochromatic
#09061F #181053 #271A86 #3624B9 #5340DA

Accessibility & contrast

On white

13.31
#271A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A86
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A86#FFFFFF#000000##FFFFFF
##271A861.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271a86;
/* rgb */ color: rgb(39, 26, 134);
/* oklch */ color: oklch(32.5% 0.167 277.0);
Tailwind
colors: {
  custom: {
    50: '#715aaa',
    500: '#271a86',
    950: '#000000',
  },
}
SCSS
$custom: #271a86;
$custom-light: #715aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#271a86",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 247.222,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.16718,
    "h": 277
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#271A86
secondary
#ABB942
accent
#EA3DD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A86

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

Preview Lab → · Contrast checker → · Palette generator →

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