#271C78#271C78

#271C78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.147 H 278.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#271C78
RGBrgb(39, 28, 120)
HSLhsl(247, 62%, 29%)
HSVhsv(247, 77%, 47%)
CMYKcmyk(67.5%, 76.7%, 0%, 52.9%)
CIE-LABlab(18.44, 34.30, -50.44)
CIE-LCHlch(18.44, 60.99, 304.21°)
OKLaboklab(31.18% 0.0229 -0.1456)
OKLCHoklch(31.18% 0.147 278.9)
XYZxyz(4.6410, 2.6175, 18.0263)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C78 #6D781C
analogous
#1C3F78 #271C78 #551C78
triadic
#271C78 #78271C #1C7827
tetradic
#271C78 #781C3F #6D781C #1C7855
square
#271C78 #781C3F #6D781C #1C7855
split-complementary
#271C78 #78551C #3F781C
monochromatic
#080619 #171046 #271C78 #3728AA #4F3DD2

Accessibility & contrast

On white

13.78
#271C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C78
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C78#FFFFFF#000000##FFFFFF
##271C781.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.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: #271c78;
/* rgb */ color: rgb(39, 28, 120);
/* oklch */ color: oklch(31.2% 0.147 278.9);
Tailwind
colors: {
  custom: {
    50: '#6d5aa0',
    500: '#271c78',
    950: '#000000',
  },
}
SCSS
$custom: #271c78;
$custom-light: #6d5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#271c78",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 247.174,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31183,
    "c": 0.14739,
    "h": 278.9
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#271C78
secondary
#A0AC44
accent
#E543D2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C78

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

Preview Lab → · Contrast checker → · Palette generator →

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