#271B88#271B88

#271B88 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.169 H 276.6°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#271B88
RGBrgb(39, 27, 136)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 53%)
CMYKcmyk(71.3%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.01, 40.15, -57.99)
CIE-LCHlch(20.01, 70.53, 304.70°)
OKLaboklab(32.81% 0.0194 -0.1676)
OKLCHoklch(32.81% 0.169 276.6)
XYZxyz(5.6711, 2.9923, 23.5665)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B88 #7C881B
analogous
#1B4588 #271B88 #5E1B88
triadic
#271B88 #88271B #1B8827
tetradic
#271B88 #881B45 #7C881B #1B885E
square
#271B88 #881B45 #7C881B #1B885E
split-complementary
#271B88 #885E1B #45881B
monochromatic
#0A0722 #181155 #271B88 #3625BB #5444DA

Accessibility & contrast

On white

13.14
#271B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B88
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B88#FFFFFF#000000##FFFFFF
##271B881.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271b88;
/* rgb */ color: rgb(39, 27, 136);
/* oklch */ color: oklch(32.8% 0.169 276.6);
Tailwind
colors: {
  custom: {
    50: '#715aac',
    500: '#271b88',
    950: '#000000',
  },
}
SCSS
$custom: #271b88;
$custom-light: #715aac;
$custom-dark: #000000;
JSON
{
  "hex": "#271b88",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 246.606,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32814,
    "c": 0.16873,
    "h": 276.6
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

primary
#271B88
secondary
#AEBB44
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B88

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

Preview Lab → · Contrast checker → · Palette generator →

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