#271A88#271A88

#271A88 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.170 H 276.7°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#271A88
RGBrgb(39, 26, 136)
HSLhsl(247, 68%, 32%)
HSVhsv(247, 81%, 53%)
CMYKcmyk(71.3%, 80.9%, 0%, 46.7%)
CIE-LABlab(19.83, 40.68, -58.29)
CIE-LCHlch(19.83, 71.08, 304.91°)
OKLaboklab(32.69% 0.0199 -0.1685)
OKLCHoklch(32.69% 0.17 276.7)
XYZxyz(5.6486, 2.9472, 23.5590)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A88 #7B881A
analogous
#1A4488 #271A88 #5E1A88
triadic
#271A88 #88271A #1A8827
tetradic
#271A88 #881A44 #7B881A #1A885E
square
#271A88 #881A44 #7B881A #1A885E
split-complementary
#271A88 #885E1A #44881A
monochromatic
#0A0621 #181055 #271A88 #3624BB #5442DB

Accessibility & contrast

On white

13.21
#271A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A88
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A88#FFFFFF#000000##FFFFFF
##271A881.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271a88;
/* rgb */ color: rgb(39, 26, 136);
/* oklch */ color: oklch(32.7% 0.170 276.7);
Tailwind
colors: {
  custom: {
    50: '#715aac',
    500: '#271a88',
    950: '#000000',
  },
}
SCSS
$custom: #271a88;
$custom-light: #715aac;
$custom-dark: #000000;
JSON
{
  "hex": "#271a88",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 247.091,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32687,
    "c": 0.16964,
    "h": 276.7
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271A88

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

Preview Lab → · Contrast checker → · Palette generator →

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