#271BAC#271BAC

#271BAC is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.211 H 272.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#271BAC
RGBrgb(39, 27, 172)
HSLhsl(245, 73%, 39%)
HSVhsv(245, 84%, 67%)
CMYKcmyk(77.3%, 84.3%, 0%, 32.5%)
CIE-LABlab(24.30, 51.40, -73.01)
CIE-LCHlch(24.30, 89.28, 305.14°)
OKLaboklab(37.03% 0.0097 -0.2112)
OKLCHoklch(37.03% 0.211 272.6)
XYZxyz(8.6725, 4.1928, 39.3740)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BAC #A0AC1B
analogous
#1B57AC #271BAC #701BAC
triadic
#271BAC #AC271B #1BAC27
tetradic
#271BAC #AC1B57 #A0AC1B #1BAC70
square
#271BAC #AC1B57 #A0AC1B #1BAC70
split-complementary
#271BAC #AC701B #57AC1B
monochromatic
#0F0A42 #1B1377 #271BAC #3627DD #675CE5

Accessibility & contrast

On white

11.42
#271BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#271BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BAC
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BAC#FFFFFF#000000##FFFFFF
##271BAC1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040B0
Deuteranopia (green-blind)
#0033AA
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #271bac;
/* rgb */ color: rgb(39, 27, 172);
/* oklch */ color: oklch(37.0% 0.211 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a5dc6',
    500: '#271bac',
    950: '#000000',
  },
}
SCSS
$custom: #271bac;
$custom-light: #7a5dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#271bac",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 172
  },
  "hsl": {
    "h": 244.966,
    "s": 72.864,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.21139,
    "h": 272.6
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#271BAC
secondary
#C0C95A
accent
#F038E0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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