#271D76#271D76

#271D76 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.144 H 279.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#271D76
RGBrgb(39, 29, 118)
HSLhsl(247, 61%, 29%)
HSVhsv(247, 75%, 46%)
CMYKcmyk(66.9%, 75.4%, 0%, 53.7%)
CIE-LABlab(18.44, 33.02, -49.15)
CIE-LCHlch(18.44, 59.22, 303.89°)
OKLaboklab(31.12% 0.0226 -0.1419)
OKLCHoklch(31.12% 0.144 279)
XYZxyz(4.5450, 2.6177, 17.4018)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D76 #6C761D
analogous
#1D4076 #271D76 #541D76
triadic
#271D76 #76271D #1D7627
tetradic
#271D76 #761D40 #6C761D #1D7654
square
#271D76 #761D40 #6C761D #1D7654
split-complementary
#271D76 #76541D #40761D
monochromatic
#080619 #171145 #271D76 #3729A7 #4E3ED0

Accessibility & contrast

On white

13.78
#271D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D76
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D76#FFFFFF#000000##FFFFFF
##271D761.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d76;
/* rgb */ color: rgb(39, 29, 118);
/* oklch */ color: oklch(31.1% 0.144 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d5a9e',
    500: '#271d76',
    950: '#000000',
  },
}
SCSS
$custom: #271d76;
$custom-light: #6d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#271d76",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 118
  },
  "hsl": {
    "h": 246.742,
    "s": 60.544,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.14366,
    "h": 279
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#271D76
secondary
#9FAA45
accent
#E444D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271D76

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

Preview Lab → · Contrast checker → · Palette generator →

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