#271B71#271B71

#271B71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.139 H 280.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#271B71
RGBrgb(39, 27, 113)
HSLhsl(248, 61%, 27%)
HSVhsv(248, 76%, 44%)
CMYKcmyk(65.5%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.49, 32.52, -47.49)
CIE-LCHlch(17.49, 57.56, 304.40°)
OKLaboklab(30.29% 0.0252 -0.137)
OKLCHoklch(30.29% 0.139 280.4)
XYZxyz(4.2083, 2.4071, 15.8624)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B71 #65711B
analogous
#1B3A71 #271B71 #521B71
triadic
#271B71 #71271B #1B7127
tetradic
#271B71 #711B3A #65711B #1B7152
square
#271B71 #711B3A #65711B #1B7152
split-complementary
#271B71 #71521B #3A711B
monochromatic
#090619 #160F40 #271B71 #3827A2 #4C37CF

Accessibility & contrast

On white

14.18
#271B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B71
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B71#FFFFFF#000000##FFFFFF
##271B711.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271b71;
/* rgb */ color: rgb(39, 27, 113);
/* oklch */ color: oklch(30.3% 0.139 280.4);
Tailwind
colors: {
  custom: {
    50: '#6c599b',
    500: '#271b71',
    950: '#000000',
  },
}
SCSS
$custom: #271b71;
$custom-light: #6c599b;
$custom-dark: #000000;
JSON
{
  "hex": "#271b71",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 248.372,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30288,
    "c": 0.1393,
    "h": 280.4
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#271B71
secondary
#98A642
accent
#E543CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271B71

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

Preview Lab → · Contrast checker → · Palette generator →

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