#271D84#271D84

#271D84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.162 H 276.9°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#271D84
RGBrgb(39, 29, 132)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 52%)
CMYKcmyk(70.5%, 78%, 0%, 48.2%)
CIE-LABlab(19.95, 37.75, -55.58)
CIE-LCHlch(19.95, 67.19, 304.18°)
OKLaboklab(32.63% 0.0194 -0.1606)
OKLCHoklch(32.63% 0.162 276.9)
XYZxyz(5.4396, 2.9755, 22.1130)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D84 #7A841D
analogous
#1D4784 #271D84 #5B1D84
triadic
#271D84 #84271D #1D8427
tetradic
#271D84 #841D47 #7A841D #1D845B
square
#271D84 #841D47 #7A841D #1D845B
split-complementary
#271D84 #845B1D #47841D
monochromatic
#090720 #181252 #271D84 #3628B6 #5345D6

Accessibility & contrast

On white

13.16
#271D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#271D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D84
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D84#FFFFFF#000000##FFFFFF
##271D841.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271d84;
/* rgb */ color: rgb(39, 29, 132);
/* oklch */ color: oklch(32.6% 0.162 276.9);
Tailwind
colors: {
  custom: {
    50: '#705ba9',
    500: '#271d84',
    950: '#000000',
  },
}
SCSS
$custom: #271d84;
$custom-light: #705ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#271d84",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 245.825,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32634,
    "c": 0.16179,
    "h": 276.9
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#271D84
secondary
#ACB746
accent
#E741D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D84

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

Preview Lab → · Contrast checker → · Palette generator →

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