#271D8B#271D8B

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

Color values

HEX#271D8B
RGBrgb(39, 29, 139)
HSLhsl(245, 65%, 33%)
HSVhsv(245, 79%, 55%)
CMYKcmyk(71.9%, 79.1%, 0%, 45.5%)
CIE-LABlab(20.73, 40.06, -58.69)
CIE-LCHlch(20.73, 71.06, 304.32°)
OKLaboklab(33.41% 0.0176 -0.1697)
OKLCHoklch(33.41% 0.171 275.9)
XYZxyz(5.9347, 3.1736, 24.7209)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D8B #818B1D
analogous
#1D4A8B #271D8B #5E1D8B
triadic
#271D8B #8B271D #1D8B27
tetradic
#271D8B #8B1D4A #818B1D #1D8B5E
square
#271D8B #8B1D4A #818B1D #1D8B5E
split-complementary
#271D8B #8B5E1D #4A8B1D
monochromatic
#0B0826 #191258 #271D8B #3528BE #5649D9

Accessibility & contrast

On white

12.85
#271D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D8B
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D8B#FFFFFF#000000##FFFFFF
##271D8B1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271d8b;
/* rgb */ color: rgb(39, 29, 139);
/* oklch */ color: oklch(33.4% 0.171 275.9);
Tailwind
colors: {
  custom: {
    50: '#725cae',
    500: '#271d8b',
    950: '#000000',
  },
}
SCSS
$custom: #271d8b;
$custom-light: #725cae;
$custom-dark: #000000;
JSON
{
  "hex": "#271d8b",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 245.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33413,
    "c": 0.17058,
    "h": 275.9
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#271D8B
secondary
#B1BB49
accent
#E83FD9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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