#271C80#271C80

#271C80 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.158 H 277.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#271C80
RGBrgb(39, 28, 128)
HSLhsl(247, 64%, 31%)
HSVhsv(247, 78%, 50%)
CMYKcmyk(69.5%, 78.1%, 0%, 49.8%)
CIE-LABlab(19.31, 36.98, -54.11)
CIE-LCHlch(19.31, 65.54, 304.35°)
OKLaboklab(32.05% 0.0209 -0.1563)
OKLCHoklch(32.05% 0.158 277.6)
XYZxyz(5.1470, 2.8199, 20.6909)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C80 #75801C
analogous
#1C4380 #271C80 #591C80
triadic
#271C80 #80271C #1C8027
tetradic
#271C80 #801C43 #75801C #1C8059
square
#271C80 #801C43 #75801C #1C8059
split-complementary
#271C80 #80591C #43801C
monochromatic
#08061C #18114E #271C80 #3627B2 #5141D5

Accessibility & contrast

On white

13.43
#271C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C80
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C80#FFFFFF#000000##FFFFFF
##271C801.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271c80;
/* rgb */ color: rgb(39, 28, 128);
/* oklch */ color: oklch(32.1% 0.158 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f5aa6',
    500: '#271c80',
    950: '#000000',
  },
}
SCSS
$custom: #271c80;
$custom-light: #6f5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#271c80",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 246.6,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32053,
    "c": 0.15771,
    "h": 277.6
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#271C80
secondary
#A7B344
accent
#E741D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C80

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

Preview Lab → · Contrast checker → · Palette generator →

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