#271C81#271C81

#271C81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 277.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#271C81
RGBrgb(39, 28, 129)
HSLhsl(247, 64%, 31%)
HSVhsv(247, 78%, 51%)
CMYKcmyk(69.8%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.42, 37.31, -54.56)
CIE-LCHlch(19.42, 66.10, 304.36°)
OKLaboklab(32.16% 0.0207 -0.1576)
OKLCHoklch(32.16% 0.159 277.5)
XYZxyz(5.2131, 2.8464, 21.0393)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C81 #76811C
analogous
#1C4381 #271C81 #591C81
triadic
#271C81 #81271C #1C8127
tetradic
#271C81 #811C43 #76811C #1C8159
square
#271C81 #811C43 #76811C #1C8159
split-complementary
#271C81 #81591C #43811C
monochromatic
#09061C #18114F #271C81 #3627B3 #5242D6

Accessibility & contrast

On white

13.38
#271C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C81
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C81#FFFFFF#000000##FFFFFF
##271C811.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271c81;
/* rgb */ color: rgb(39, 28, 129);
/* oklch */ color: oklch(32.2% 0.159 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f5aa7',
    500: '#271c81',
    950: '#000000',
  },
}
SCSS
$custom: #271c81;
$custom-light: #6f5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#271c81",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 246.535,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32164,
    "c": 0.15899,
    "h": 277.5
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#271C81
secondary
#A8B444
accent
#E740D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271C81

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

Preview Lab → · Contrast checker → · Palette generator →

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