#271C79#271C79

#271C79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.149 H 278.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#271C79
RGBrgb(39, 28, 121)
HSLhsl(247, 62%, 29%)
HSVhsv(247, 77%, 47%)
CMYKcmyk(67.8%, 76.9%, 0%, 52.5%)
CIE-LABlab(18.55, 34.63, -50.90)
CIE-LCHlch(18.55, 61.57, 304.23°)
OKLaboklab(31.29% 0.0226 -0.147)
OKLCHoklch(31.29% 0.149 278.7)
XYZxyz(4.7020, 2.6419, 18.3476)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C79 #6E791C
analogous
#1C4079 #271C79 #561C79
triadic
#271C79 #79271C #1C7927
tetradic
#271C79 #791C40 #6E791C #1C7956
square
#271C79 #791C40 #6E791C #1C7956
split-complementary
#271C79 #79561C #40791C
monochromatic
#080619 #171047 #271C79 #3728AB #4F3DD2

Accessibility & contrast

On white

13.74
#271C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C79
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C79#FFFFFF#000000##FFFFFF
##271C791.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271c79;
/* rgb */ color: rgb(39, 28, 121);
/* oklch */ color: oklch(31.3% 0.149 278.7);
Tailwind
colors: {
  custom: {
    50: '#6d5aa1',
    500: '#271c79',
    950: '#000000',
  },
}
SCSS
$custom: #271c79;
$custom-light: #6d5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#271c79",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 247.097,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31291,
    "c": 0.1487,
    "h": 278.7
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#271C79
secondary
#A1AD44
accent
#E542D2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C79

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

Preview Lab → · Contrast checker → · Palette generator →

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