#271C76#271C76

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

Color values

HEX#271C76
RGBrgb(39, 28, 118)
HSLhsl(247, 62%, 29%)
HSVhsv(247, 76%, 46%)
CMYKcmyk(66.9%, 76.3%, 0%, 53.7%)
CIE-LABlab(18.23, 33.62, -49.50)
CIE-LCHlch(18.23, 59.84, 304.18°)
OKLaboklab(30.97% 0.0233 -0.1429)
OKLCHoklch(30.97% 0.145 279.3)
XYZxyz(4.5209, 2.5695, 17.3937)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C76 #6B761C
analogous
#1C3E76 #271C76 #541C76
triadic
#271C76 #76271C #1C7627
tetradic
#271C76 #761C3E #6B761C #1C7654
square
#271C76 #761C3E #6B761C #1C7654
split-complementary
#271C76 #76541C #3E761C
monochromatic
#080619 #171045 #271C76 #3728A7 #4E3CD1

Accessibility & contrast

On white

13.87
#271C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C76
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C76#FFFFFF#000000##FFFFFF
##271C761.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271c76;
/* rgb */ color: rgb(39, 28, 118);
/* oklch */ color: oklch(31.0% 0.145 279.3);
Tailwind
colors: {
  custom: {
    50: '#6d5a9e',
    500: '#271c76',
    950: '#000000',
  },
}
SCSS
$custom: #271c76;
$custom-light: #6d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#271c76",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 247.333,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30969,
    "c": 0.14477,
    "h": 279.3
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#271C76
secondary
#9EAA44
accent
#E543D1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #271C76

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

Preview Lab → · Contrast checker → · Palette generator →

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