#271A81#271A81

#271A81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.161 H 277.8°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#271A81
RGBrgb(39, 26, 129)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 80%, 51%)
CMYKcmyk(69.8%, 79.8%, 0%, 49.4%)
CIE-LABlab(19.03, 38.41, -55.20)
CIE-LCHlch(19.03, 67.24, 304.83°)
OKLaboklab(31.89% 0.0218 -0.1595)
OKLCHoklch(31.89% 0.161 277.8)
XYZxyz(5.1673, 2.7547, 21.0240)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A81 #74811A
analogous
#1A4081 #271A81 #5A1A81
triadic
#271A81 #81271A #1A8127
tetradic
#271A81 #811A40 #74811A #1A815A
square
#271A81 #811A40 #74811A #1A815A
split-complementary
#271A81 #815A1A #40811A
monochromatic
#08051B #18104E #271A81 #3624B4 #513DD8

Accessibility & contrast

On white

13.54
#271A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A81
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A81#FFFFFF#000000##FFFFFF
##271A811.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271a81;
/* rgb */ color: rgb(39, 26, 129);
/* oklch */ color: oklch(31.9% 0.161 277.8);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#271a81',
    950: '#000000',
  },
}
SCSS
$custom: #271a81;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271a81",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 247.573,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31894,
    "c": 0.16094,
    "h": 277.8
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#271A81
secondary
#A6B542
accent
#E93ED4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271A81

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

Preview Lab → · Contrast checker → · Palette generator →

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