#271CA7#271CA7

#271CA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.5% C 0.205 H 273.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#271CA7
RGBrgb(39, 28, 167)
HSLhsl(245, 71%, 38%)
HSVhsv(245, 83%, 65%)
CMYKcmyk(76.6%, 83.2%, 0%, 34.5%)
CIE-LABlab(23.84, 49.43, -70.75)
CIE-LCHlch(23.84, 86.31, 304.94°)
OKLaboklab(36.54% 0.0108 -0.2047)
OKLCHoklch(36.54% 0.205 273)
XYZxyz(8.2247, 4.0510, 36.9002)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271CA7 #9CA71C
analogous
#1C56A7 #271CA7 #6C1CA7
triadic
#271CA7 #A7271C #1CA727
tetradic
#271CA7 #A71C56 #9CA71C #1CA76C
square
#271CA7 #A71C56 #9CA71C #1CA76C
split-complementary
#271CA7 #A76C1C #56A71C
monochromatic
#0F0A3E #1B1373 #271CA7 #3426DB #655AE3

Accessibility & contrast

On white

11.60
#271CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#271CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271CA7
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271CA7#FFFFFF#000000##FFFFFF
##271CA71.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0032A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #271ca7;
/* rgb */ color: rgb(39, 28, 167);
/* oklch */ color: oklch(36.5% 0.205 273.0);
Tailwind
colors: {
  custom: {
    50: '#795dc3',
    500: '#271ca7',
    950: '#000000',
  },
}
SCSS
$custom: #271ca7;
$custom-light: #795dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#271ca7",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 244.748,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36535,
    "c": 0.20494,
    "h": 273
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#271CA7
secondary
#BEC758
accent
#EE3AE0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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