#271A84#271A84

#271A84 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.165 H 277.3°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#271A84
RGBrgb(39, 26, 132)
HSLhsl(247, 67%, 31%)
HSVhsv(247, 80%, 52%)
CMYKcmyk(70.5%, 80.3%, 0%, 48.2%)
CIE-LABlab(19.37, 39.38, -56.53)
CIE-LCHlch(19.37, 68.90, 304.86°)
OKLaboklab(32.23% 0.021 -0.1633)
OKLCHoklch(32.23% 0.165 277.3)
XYZxyz(5.3696, 2.8356, 22.0897)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A84 #77841A
analogous
#1A4284 #271A84 #5C1A84
triadic
#271A84 #84271A #1A8427
tetradic
#271A84 #841A42 #77841A #1A845C
square
#271A84 #841A42 #77841A #1A845C
split-complementary
#271A84 #845C1A #42841A
monochromatic
#09061E #181051 #271A84 #3624B7 #523FD9

Accessibility & contrast

On white

13.40
#271A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A84
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A84#FFFFFF#000000##FFFFFF
##271A841.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271a84;
/* rgb */ color: rgb(39, 26, 132);
/* oklch */ color: oklch(32.2% 0.165 277.3);
Tailwind
colors: {
  custom: {
    50: '#7059a9',
    500: '#271a84',
    950: '#000000',
  },
}
SCSS
$custom: #271a84;
$custom-light: #7059a9;
$custom-dark: #000000;
JSON
{
  "hex": "#271a84",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 247.358,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32232,
    "c": 0.16469,
    "h": 277.3
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#271A84
secondary
#A9B842
accent
#EA3ED5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A84

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

Preview Lab → · Contrast checker → · Palette generator →

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