#271B78#271B78

#271B78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.148 H 279.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#271B78
RGBrgb(39, 27, 120)
HSLhsl(248, 63%, 29%)
HSVhsv(248, 78%, 47%)
CMYKcmyk(67.5%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.24, 34.88, -50.78)
CIE-LCHlch(18.24, 61.60, 304.48°)
OKLaboklab(31.04% 0.0235 -0.1466)
OKLCHoklch(31.04% 0.148 279.1)
XYZxyz(4.6177, 2.5709, 18.0185)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B78 #6C781B
analogous
#1B3E78 #271B78 #561B78
triadic
#271B78 #78271B #1B7827
tetradic
#271B78 #781B3E #6C781B #1B7856
square
#271B78 #781B3E #6C781B #1B7856
split-complementary
#271B78 #78561B #3E781B
monochromatic
#080619 #171046 #271B78 #3726AA #4E3BD3

Accessibility & contrast

On white

13.87
#271B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B78
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B78#FFFFFF#000000##FFFFFF
##271B781.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271b78;
/* rgb */ color: rgb(39, 27, 120);
/* oklch */ color: oklch(31.0% 0.148 279.1);
Tailwind
colors: {
  custom: {
    50: '#6d59a0',
    500: '#271b78',
    950: '#000000',
  },
}
SCSS
$custom: #271b78;
$custom-light: #6d59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271b78",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 247.742,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31038,
    "c": 0.14847,
    "h": 279.1
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#271B78
secondary
#9FAC43
accent
#E641D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B78

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

Preview Lab → · Contrast checker → · Palette generator →

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