#271B8D#271B8D

#271B8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.175 H 275.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#271B8D
RGBrgb(39, 27, 141)
HSLhsl(246, 68%, 33%)
HSVhsv(246, 81%, 55%)
CMYKcmyk(72.3%, 80.9%, 0%, 44.7%)
CIE-LABlab(20.59, 41.77, -60.17)
CIE-LCHlch(20.59, 73.24, 304.77°)
OKLaboklab(33.38% 0.0181 -0.1739)
OKLCHoklch(33.38% 0.175 275.9)
XYZxyz(6.0348, 3.1377, 25.4817)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B8D #818D1B
analogous
#1B488D #271B8D #601B8D
triadic
#271B8D #8D271B #1B8D27
tetradic
#271B8D #8D1B48 #818D1B #1B8D60
square
#271B8D #8D1B48 #818D1B #1B8D60
split-complementary
#271B8D #8D601B #488D1B
monochromatic
#0B0726 #19115A #271B8D #3525C0 #5647DC

Accessibility & contrast

On white

12.90
#271B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B8D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B8D#FFFFFF#000000##FFFFFF
##271B8D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271b8d;
/* rgb */ color: rgb(39, 27, 141);
/* oklch */ color: oklch(33.4% 0.175 275.9);
Tailwind
colors: {
  custom: {
    50: '#725bb0',
    500: '#271b8d',
    950: '#000000',
  },
}
SCSS
$custom: #271b8d;
$custom-light: #725bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#271b8d",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 246.316,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33383,
    "c": 0.17488,
    "h": 275.9
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#271B8D
secondary
#B1BD46
accent
#EB3DD8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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