#271B83#271B83

#271B83 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.163 H 277.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#271B83
RGBrgb(39, 27, 131)
HSLhsl(247, 66%, 31%)
HSVhsv(247, 79%, 51%)
CMYKcmyk(70.2%, 79.4%, 0%, 48.6%)
CIE-LABlab(19.45, 38.52, -55.78)
CIE-LCHlch(19.45, 67.79, 304.63°)
OKLaboklab(32.25% 0.0207 -0.1612)
OKLCHoklch(32.25% 0.163 277.3)
XYZxyz(5.3240, 2.8534, 21.7385)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B83 #77831B
analogous
#1B4383 #271B83 #5B1B83
triadic
#271B83 #83271B #1B8327
tetradic
#271B83 #831B43 #77831B #1B835B
square
#271B83 #831B43 #77831B #1B835B
split-complementary
#271B83 #835B1B #43831B
monochromatic
#09061E #181150 #271B83 #3625B6 #5241D8

Accessibility & contrast

On white

13.37
#271B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B83
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B83#FFFFFF#000000##FFFFFF
##271B831.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271b83;
/* rgb */ color: rgb(39, 27, 131);
/* oklch */ color: oklch(32.3% 0.163 277.3);
Tailwind
colors: {
  custom: {
    50: '#705aa8',
    500: '#271b83',
    950: '#000000',
  },
}
SCSS
$custom: #271b83;
$custom-light: #705aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#271b83",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 246.923,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3225,
    "c": 0.1625,
    "h": 277.3
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#271B83
secondary
#A9B643
accent
#E93FD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B83

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

Preview Lab → · Contrast checker → · Palette generator →

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