#271C77#271C77

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

Color values

HEX#271C77
RGBrgb(39, 28, 119)
HSLhsl(247, 62%, 29%)
HSVhsv(247, 76%, 47%)
CMYKcmyk(67.2%, 76.5%, 0%, 53.3%)
CIE-LABlab(18.34, 33.96, -49.97)
CIE-LCHlch(18.34, 60.42, 304.20°)
OKLaboklab(31.08% 0.0231 -0.1442)
OKLCHoklch(31.08% 0.146 279.1)
XYZxyz(4.5807, 2.5934, 17.7084)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C77 #6C771C
analogous
#1C3F77 #271C77 #551C77
triadic
#271C77 #77271C #1C7727
tetradic
#271C77 #771C3F #6C771C #1C7755
square
#271C77 #771C3F #6C771C #1C7755
split-complementary
#271C77 #77551C #3F771C
monochromatic
#080619 #171045 #271C77 #3728A9 #4E3CD1

Accessibility & contrast

On white

13.83
#271C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C77
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C77#FFFFFF#000000##FFFFFF
##271C771.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c77;
/* rgb */ color: rgb(39, 28, 119);
/* oklch */ color: oklch(31.1% 0.146 279.1);
Tailwind
colors: {
  custom: {
    50: '#6d5a9f',
    500: '#271c77',
    950: '#000000',
  },
}
SCSS
$custom: #271c77;
$custom-light: #6d5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#271c77",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 247.253,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31076,
    "c": 0.14608,
    "h": 279.1
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#271C77
secondary
#9FAB44
accent
#E543D1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #271C77

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

Preview Lab → · Contrast checker → · Palette generator →

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