#271C7F#271C7F

#271C7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.156 H 277.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#271C7F
RGBrgb(39, 28, 127)
HSLhsl(247, 64%, 30%)
HSVhsv(247, 78%, 50%)
CMYKcmyk(69.3%, 78%, 0%, 50.2%)
CIE-LABlab(19.20, 36.64, -53.66)
CIE-LCHlch(19.20, 64.97, 304.33°)
OKLaboklab(31.94% 0.0212 -0.155)
OKLCHoklch(31.94% 0.156 277.8)
XYZxyz(5.0815, 2.7937, 20.3460)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C7F #747F1C
analogous
#1C427F #271C7F #591C7F
triadic
#271C7F #7F271C #1C7F27
tetradic
#271C7F #7F1C42 #747F1C #1C7F59
square
#271C7F #7F1C42 #747F1C #1C7F59
split-complementary
#271C7F #7F591C #427F1C
monochromatic
#08061B #18114D #271C7F #3627B1 #5140D5

Accessibility & contrast

On white

13.47
#271C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C7F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C7F#FFFFFF#000000##FFFFFF
##271C7F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271c7f;
/* rgb */ color: rgb(39, 28, 127);
/* oklch */ color: oklch(31.9% 0.156 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f5aa5',
    500: '#271c7f',
    950: '#000000',
  },
}
SCSS
$custom: #271c7f;
$custom-light: #6f5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#271c7f",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 246.667,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31943,
    "c": 0.15644,
    "h": 277.8
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#271C7F
secondary
#A6B344
accent
#E741D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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