#271B76#271B76

#271B76 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.146 H 279.5°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#271B76
RGBrgb(39, 27, 118)
HSLhsl(248, 63%, 28%)
HSVhsv(248, 77%, 46%)
CMYKcmyk(66.9%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.02, 34.21, -49.85)
CIE-LCHlch(18.02, 60.45, 304.46°)
OKLaboklab(30.82% 0.024 -0.1439)
OKLCHoklch(30.82% 0.146 279.5)
XYZxyz(4.4976, 2.5228, 17.3860)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B76 #6A761B
analogous
#1B3C76 #271B76 #541B76
triadic
#271B76 #76271B #1B7627
tetradic
#271B76 #761B3C #6A761B #1B7654
square
#271B76 #761B3C #6A761B #1B7654
split-complementary
#271B76 #76541B #3C761B
monochromatic
#080619 #171044 #271B76 #3726A8 #4E3AD2

Accessibility & contrast

On white

13.96
#271B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B76
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B76#FFFFFF#000000##FFFFFF
##271B761.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271b76;
/* rgb */ color: rgb(39, 27, 118);
/* oklch */ color: oklch(30.8% 0.146 279.5);
Tailwind
colors: {
  custom: {
    50: '#6d599e',
    500: '#271b76',
    950: '#000000',
  },
}
SCSS
$custom: #271b76;
$custom-light: #6d599e;
$custom-dark: #000000;
JSON
{
  "hex": "#271b76",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 247.912,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30821,
    "c": 0.14587,
    "h": 279.5
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#271B76
secondary
#9DAA42
accent
#E642D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #271B76

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

Preview Lab → · Contrast checker → · Palette generator →

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