#271BA7#271BA7

#271BA7 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.4% C 0.206 H 273.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#271BA7
RGBrgb(39, 27, 167)
HSLhsl(245, 72%, 38%)
HSVhsv(245, 84%, 65%)
CMYKcmyk(76.6%, 83.8%, 0%, 34.5%)
CIE-LABlab(23.69, 49.89, -71.01)
CIE-LCHlch(23.69, 86.78, 305.09°)
OKLaboklab(36.43% 0.011 -0.2054)
OKLCHoklch(36.43% 0.206 273.1)
XYZxyz(8.2014, 4.0044, 36.8924)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BA7 #9BA71B
analogous
#1B55A7 #271BA7 #6D1BA7
triadic
#271BA7 #A7271B #1BA727
tetradic
#271BA7 #A71B55 #9BA71B #1BA76D
square
#271BA7 #A71B55 #9BA71B #1BA76D
split-complementary
#271BA7 #A76D1B #55A71B
monochromatic
#0E0A3E #1B1272 #271BA7 #3324DC #6458E4

Accessibility & contrast

On white

11.66
#271BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#271BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BA7
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BA7#FFFFFF#000000##FFFFFF
##271BA71.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271ba7;
/* rgb */ color: rgb(39, 27, 167);
/* oklch */ color: oklch(36.4% 0.206 273.1);
Tailwind
colors: {
  custom: {
    50: '#795dc3',
    500: '#271ba7',
    950: '#000000',
  },
}
SCSS
$custom: #271ba7;
$custom-light: #795dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#271ba7",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 245.143,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3643,
    "c": 0.20568,
    "h": 273.1
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#271BA7
secondary
#BEC856
accent
#EF39DF
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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