#271BAA#271BAA

#271BAA is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.8% C 0.209 H 272.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#271BAA
RGBrgb(39, 27, 170)
HSLhsl(245, 73%, 39%)
HSVhsv(245, 84%, 67%)
CMYKcmyk(77.1%, 84.1%, 0%, 33.3%)
CIE-LABlab(24.05, 50.79, -72.21)
CIE-LCHlch(24.05, 88.28, 305.12°)
OKLaboklab(36.79% 0.0102 -0.2089)
OKLCHoklch(36.79% 0.209 272.8)
XYZxyz(8.4819, 4.1166, 38.3700)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BAA #9EAA1B
analogous
#1B56AA #271BAA #6E1BAA
triadic
#271BAA #AA271B #1BAA27
tetradic
#271BAA #AA1B56 #9EAA1B #1BAA6E
square
#271BAA #AA1B56 #9EAA1B #1BAA6E
split-complementary
#271BAA #AA6E1B #56AA1B
monochromatic
#0F0A40 #1B1375 #271BAA #3526DC #665BE5

Accessibility & contrast

On white

11.52
#271BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#271BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BAA
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BAA#FFFFFF#000000##FFFFFF
##271BAA1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271baa;
/* rgb */ color: rgb(39, 27, 170);
/* oklch */ color: oklch(36.8% 0.209 272.8);
Tailwind
colors: {
  custom: {
    50: '#795dc5',
    500: '#271baa',
    950: '#000000',
  },
}
SCSS
$custom: #271baa;
$custom-light: #795dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#271baa",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 245.035,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36788,
    "c": 0.20911,
    "h": 272.8
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#271BAA
secondary
#BFC958
accent
#EF39E0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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