#271A79#271A79

#271A79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.151 H 279.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#271A79
RGBrgb(39, 26, 121)
HSLhsl(248, 65%, 29%)
HSVhsv(248, 79%, 47%)
CMYKcmyk(67.8%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.14, 35.78, -51.57)
CIE-LCHlch(18.14, 62.76, 304.75°)
OKLaboklab(31.01% 0.0239 -0.1489)
OKLCHoklch(31.01% 0.151 279.1)
XYZxyz(4.6562, 2.5502, 18.3323)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A79 #6C791A
analogous
#1A3D79 #271A79 #571A79
triadic
#271A79 #79271A #1A7927
tetradic
#271A79 #791A3D #6C791A #1A7957
square
#271A79 #791A3D #6C791A #1A7957
split-complementary
#271A79 #79571A #3D791A
monochromatic
#080519 #170F47 #271A79 #3725AB #4E39D4

Accessibility & contrast

On white

13.91
#271A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A79
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A79#FFFFFF#000000##FFFFFF
##271A791.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271a79;
/* rgb */ color: rgb(39, 26, 121);
/* oklch */ color: oklch(31.0% 0.151 279.1);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#271a79',
    950: '#000000',
  },
}
SCSS
$custom: #271a79;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271a79",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 248.211,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31005,
    "c": 0.1508,
    "h": 279.1
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#271A79
secondary
#9FAD41
accent
#E840D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271A79

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

Preview Lab → · Contrast checker → · Palette generator →

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