#271BA1#271BA1

#271BA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.199 H 273.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#271BA1
RGBrgb(39, 27, 161)
HSLhsl(245, 71%, 37%)
HSVhsv(245, 83%, 63%)
CMYKcmyk(75.8%, 83.2%, 0%, 36.9%)
CIE-LABlab(22.96, 48.05, -68.57)
CIE-LCHlch(22.96, 83.73, 305.02°)
OKLaboklab(35.72% 0.0127 -0.1983)
OKLCHoklch(35.72% 0.199 273.6)
XYZxyz(7.6595, 3.7876, 34.0387)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BA1 #95A11B
analogous
#1B52A1 #271BA1 #6A1BA1
triadic
#271BA1 #A1271B #1BA127
tetradic
#271BA1 #A11B52 #95A11B #1BA16A
square
#271BA1 #A11B52 #95A11B #1BA16A
split-complementary
#271BA1 #A16A1B #52A11B
monochromatic
#0E0938 #1A126D #271BA1 #3424D5 #6154E2

Accessibility & contrast

On white

11.95
#271BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#271BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BA1
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BA1#FFFFFF#000000##FFFFFF
##271BA11.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271ba1;
/* rgb */ color: rgb(39, 27, 161);
/* oklch */ color: oklch(35.7% 0.199 273.6);
Tailwind
colors: {
  custom: {
    50: '#775cbe',
    500: '#271ba1',
    950: '#000000',
  },
}
SCSS
$custom: #271ba1;
$custom-light: #775cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#271ba1",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 245.373,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35716,
    "c": 0.19872,
    "h": 273.6
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#271BA1
secondary
#BBC552
accent
#EE3ADE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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