#271BAB#271BAB

#271BAB is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.210 H 272.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#271BAB
RGBrgb(39, 27, 171)
HSLhsl(245, 73%, 39%)
HSVhsv(245, 84%, 67%)
CMYKcmyk(77.2%, 84.2%, 0%, 32.9%)
CIE-LABlab(24.18, 51.10, -72.61)
CIE-LCHlch(24.18, 88.78, 305.13°)
OKLaboklab(36.91% 0.01 -0.21)
OKLCHoklch(36.91% 0.21 272.7)
XYZxyz(8.5769, 4.1546, 38.8701)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BAB #9FAB1B
analogous
#1B57AB #271BAB #6F1BAB
triadic
#271BAB #AB271B #1BAB27
tetradic
#271BAB #AB1B57 #9FAB1B #1BAB6F
square
#271BAB #AB1B57 #9FAB1B #1BAB6F
split-complementary
#271BAB #AB6F1B #57AB1B
monochromatic
#0F0A41 #1B1376 #271BAB #3626DD #675BE5

Accessibility & contrast

On white

11.47
#271BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#271BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BAB
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BAB#FFFFFF#000000##FFFFFF
##271BAB1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AF
Deuteranopia (green-blind)
#0032A9
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #271bab;
/* rgb */ color: rgb(39, 27, 171);
/* oklch */ color: oklch(36.9% 0.210 272.7);
Tailwind
colors: {
  custom: {
    50: '#7a5dc5',
    500: '#271bab',
    950: '#000000',
  },
}
SCSS
$custom: #271bab;
$custom-light: #7a5dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#271bab",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 171
  },
  "hsl": {
    "h": 245,
    "s": 72.727,
    "l": 38.824
  },
  "oklch": {
    "l": 0.36908,
    "c": 0.21026,
    "h": 272.7
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#271BAB
secondary
#C0C959
accent
#EF38E0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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