#271A91#271A91

#271A91 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.181 H 275.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#271A91
RGBrgb(39, 26, 145)
HSLhsl(247, 70%, 34%)
HSVhsv(247, 82%, 57%)
CMYKcmyk(73.1%, 82.1%, 0%, 43.1%)
CIE-LABlab(20.88, 43.55, -62.17)
CIE-LCHlch(20.88, 75.90, 305.01°)
OKLaboklab(33.72% 0.0174 -0.1797)
OKLCHoklch(33.72% 0.181 275.5)
XYZxyz(6.3152, 3.2138, 27.0701)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A91 #84911A
analogous
#1A4891 #271A91 #621A91
triadic
#271A91 #91271A #1A9127
tetradic
#271A91 #911A48 #84911A #1A9162
square
#271A91 #911A48 #84911A #1A9162
split-complementary
#271A91 #91621A #48911A
monochromatic
#0B0729 #19115D #271A91 #3523C5 #5847DE

Accessibility & contrast

On white

12.78
#271A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#271A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A91
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A91#FFFFFF#000000##FFFFFF
##271A911.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003794
Deuteranopia (green-blind)
#002D8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271a91;
/* rgb */ color: rgb(39, 26, 145);
/* oklch */ color: oklch(33.7% 0.181 275.5);
Tailwind
colors: {
  custom: {
    50: '#735ab3',
    500: '#271a91',
    950: '#000000',
  },
}
SCSS
$custom: #271a91;
$custom-light: #735ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#271a91",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 246.555,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33724,
    "c": 0.18058,
    "h": 275.5
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#271A91
secondary
#B2C047
accent
#EC3BD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271A91

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

Preview Lab → · Contrast checker → · Palette generator →

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