#271A89#271A89

#271A89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.171 H 276.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#271A89
RGBrgb(39, 26, 137)
HSLhsl(247, 68%, 32%)
HSVhsv(247, 81%, 54%)
CMYKcmyk(71.5%, 81%, 0%, 46.3%)
CIE-LABlab(19.95, 41.00, -58.73)
CIE-LCHlch(19.95, 71.62, 304.92°)
OKLaboklab(32.8% 0.0196 -0.1697)
OKLCHoklch(32.8% 0.171 276.6)
XYZxyz(5.7200, 2.9757, 23.9350)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A89 #7C891A
analogous
#1A4589 #271A89 #5F1A89
triadic
#271A89 #89271A #1A8927
tetradic
#271A89 #891A45 #7C891A #1A895F
square
#271A89 #891A45 #7C891A #1A895F
split-complementary
#271A89 #895F1A #45891A
monochromatic
#0A0622 #181056 #271A89 #3624BC #5442DB

Accessibility & contrast

On white

13.16
#271A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#271A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A89
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A89#FFFFFF#000000##FFFFFF
##271A891.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271a89;
/* rgb */ color: rgb(39, 26, 137);
/* oklch */ color: oklch(32.8% 0.171 276.6);
Tailwind
colors: {
  custom: {
    50: '#715aad',
    500: '#271a89',
    950: '#000000',
  },
}
SCSS
$custom: #271a89;
$custom-light: #715aad;
$custom-dark: #000000;
JSON
{
  "hex": "#271a89",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 247.027,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32801,
    "c": 0.17087,
    "h": 276.6
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#271A89
secondary
#AEBC43
accent
#EB3DD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A89

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

Preview Lab → · Contrast checker → · Palette generator →

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