#271A87#271A87

#271A87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.168 H 276.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#271A87
RGBrgb(39, 26, 135)
HSLhsl(247, 68%, 32%)
HSVhsv(247, 81%, 53%)
CMYKcmyk(71.1%, 80.7%, 0%, 47.1%)
CIE-LABlab(19.72, 40.35, -57.85)
CIE-LCHlch(19.72, 70.54, 304.90°)
OKLaboklab(32.57% 0.0202 -0.1672)
OKLCHoklch(32.57% 0.168 276.9)
XYZxyz(5.5778, 2.9189, 23.1864)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A87 #7A871A
analogous
#1A4487 #271A87 #5E1A87
triadic
#271A87 #87271A #1A8727
tetradic
#271A87 #871A44 #7A871A #1A875E
square
#271A87 #871A44 #7A871A #1A875E
split-complementary
#271A87 #875E1A #44871A
monochromatic
#090620 #181054 #271A87 #3624BA #5341DA

Accessibility & contrast

On white

13.26
#271A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A87
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A87#FFFFFF#000000##FFFFFF
##271A871.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271a87;
/* rgb */ color: rgb(39, 26, 135);
/* oklch */ color: oklch(32.6% 0.168 276.9);
Tailwind
colors: {
  custom: {
    50: '#715aab',
    500: '#271a87',
    950: '#000000',
  },
}
SCSS
$custom: #271a87;
$custom-light: #715aab;
$custom-dark: #000000;
JSON
{
  "hex": "#271a87",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 247.156,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32573,
    "c": 0.16841,
    "h": 276.9
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#271A87
secondary
#ACBA42
accent
#EB3DD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A87

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

Preview Lab → · Contrast checker → · Palette generator →

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