#271AA1#271AA1

#271AA1 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.199 H 273.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#271AA1
RGBrgb(39, 26, 161)
HSLhsl(246, 72%, 37%)
HSVhsv(246, 84%, 63%)
CMYKcmyk(75.8%, 83.9%, 0%, 36.9%)
CIE-LABlab(22.80, 48.51, -68.83)
CIE-LCHlch(22.80, 84.21, 305.18°)
OKLaboklab(35.61% 0.013 -0.199)
OKLCHoklch(35.61% 0.199 273.7)
XYZxyz(7.6370, 3.7425, 34.0312)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271AA1 #94A11A
analogous
#1A51A1 #271AA1 #6B1AA1
triadic
#271AA1 #A1271A #1AA127
tetradic
#271AA1 #A11A51 #94A11A #1AA16B
square
#271AA1 #A11A51 #94A11A #1AA16B
split-complementary
#271AA1 #A16B1A #51A11A
monochromatic
#0D0938 #1A116C #271AA1 #3423D6 #6052E3

Accessibility & contrast

On white

12.01
#271AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#271AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271AA1
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271AA1#FFFFFF#000000##FFFFFF
##271AA11.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271aa1;
/* rgb */ color: rgb(39, 26, 161);
/* oklch */ color: oklch(35.6% 0.199 273.7);
Tailwind
colors: {
  custom: {
    50: '#775cbe',
    500: '#271aa1',
    950: '#000000',
  },
}
SCSS
$custom: #271aa1;
$custom-light: #775cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#271aa1",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 245.778,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35609,
    "c": 0.19947,
    "h": 273.7
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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