#271D83#271D83

#271D83 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.161 H 277.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#271D83
RGBrgb(39, 29, 131)
HSLhsl(246, 64%, 31%)
HSVhsv(246, 78%, 51%)
CMYKcmyk(70.2%, 77.9%, 0%, 48.6%)
CIE-LABlab(19.84, 37.41, -55.14)
CIE-LCHlch(19.84, 66.63, 304.16°)
OKLaboklab(32.52% 0.0196 -0.1593)
OKLCHoklch(32.52% 0.161 277)
XYZxyz(5.3715, 2.9483, 21.7543)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D83 #79831D
analogous
#1D4683 #271D83 #5A1D83
triadic
#271D83 #83271D #1D8327
tetradic
#271D83 #831D46 #79831D #1D835A
square
#271D83 #831D46 #79831D #1D835A
split-complementary
#271D83 #835A1D #46831D
monochromatic
#09071F #181251 #271D83 #3628B5 #5345D6

Accessibility & contrast

On white

13.21
#271D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D83
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D83#FFFFFF#000000##FFFFFF
##271D831.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d83;
/* rgb */ color: rgb(39, 29, 131);
/* oklch */ color: oklch(32.5% 0.161 277.0);
Tailwind
colors: {
  custom: {
    50: '#705ba8',
    500: '#271d83',
    950: '#000000',
  },
}
SCSS
$custom: #271d83;
$custom-light: #705ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#271d83",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 245.882,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32523,
    "c": 0.16052,
    "h": 277
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271D83

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

Preview Lab → · Contrast checker → · Palette generator →

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