#271AA0#271AA0

#271AA0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.198 H 273.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#271AA0
RGBrgb(39, 26, 160)
HSLhsl(246, 72%, 36%)
HSVhsv(246, 84%, 63%)
CMYKcmyk(75.6%, 83.8%, 0%, 37.3%)
CIE-LABlab(22.68, 48.20, -68.42)
CIE-LCHlch(22.68, 83.70, 305.17°)
OKLaboklab(35.49% 0.0132 -0.1979)
OKLCHoklch(35.49% 0.198 273.8)
XYZxyz(7.5492, 3.7074, 33.5686)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271AA0 #93A01A
analogous
#1A50A0 #271AA0 #6A1AA0
triadic
#271AA0 #A0271A #1AA027
tetradic
#271AA0 #A01A50 #93A01A #1AA06A
square
#271AA0 #A01A50 #93A01A #1AA06A
split-complementary
#271AA0 #A06A1A #50A01A
monochromatic
#0D0937 #1A116B #271AA0 #3423D5 #6052E3

Accessibility & contrast

On white

12.06
#271AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#271AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271AA0
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271AA0#FFFFFF#000000##FFFFFF
##271AA01.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271aa0;
/* rgb */ color: rgb(39, 26, 160);
/* oklch */ color: oklch(35.5% 0.198 273.8);
Tailwind
colors: {
  custom: {
    50: '#775bbe',
    500: '#271aa0',
    950: '#000000',
  },
}
SCSS
$custom: #271aa0;
$custom-light: #775bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#271aa0",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 245.821,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.19831,
    "h": 273.8
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#271AA0
secondary
#BAC550
accent
#EF39DD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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