#271D82#271D82

#271D82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.159 H 277.2°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#271D82
RGBrgb(39, 29, 130)
HSLhsl(246, 64%, 31%)
HSVhsv(246, 78%, 51%)
CMYKcmyk(70%, 77.7%, 0%, 49%)
CIE-LABlab(19.73, 37.08, -54.68)
CIE-LCHlch(19.73, 66.07, 304.14°)
OKLaboklab(32.41% 0.0199 -0.158)
OKLCHoklch(32.41% 0.159 277.2)
XYZxyz(5.3040, 2.9213, 21.3991)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D82 #78821D
analogous
#1D4582 #271D82 #591D82
triadic
#271D82 #82271D #1D8227
tetradic
#271D82 #821D45 #78821D #1D8259
square
#271D82 #821D45 #78821D #1D8259
split-complementary
#271D82 #82591D #45821D
monochromatic
#09071E #181250 #271D82 #3628B4 #5244D5

Accessibility & contrast

On white

13.25
#271D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D82
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D82#FFFFFF#000000##FFFFFF
##271D821.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271d82;
/* rgb */ color: rgb(39, 29, 130);
/* oklch */ color: oklch(32.4% 0.159 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f5ba7',
    500: '#271d82',
    950: '#000000',
  },
}
SCSS
$custom: #271d82;
$custom-light: #6f5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#271d82",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 245.941,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.15925,
    "h": 277.2
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#271D82
secondary
#AAB546
accent
#E741D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271D82

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

Preview Lab → · Contrast checker → · Palette generator →

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