#271AA6#271AA6

#271AA6 is a dark, highly saturated blue. Relative luminance 0.039; OKLCH L 36.2% C 0.205 H 273.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#271AA6
RGBrgb(39, 26, 166)
HSLhsl(246, 73%, 38%)
HSVhsv(246, 84%, 65%)
CMYKcmyk(76.5%, 84.3%, 0%, 34.9%)
CIE-LABlab(23.41, 50.03, -70.85)
CIE-LCHlch(23.41, 86.73, 305.22°)
OKLaboklab(36.21% 0.0116 -0.2049)
OKLCHoklch(36.21% 0.205 273.2)
XYZxyz(8.0867, 3.9224, 36.3999)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271AA6 #99A61A
analogous
#1A53A6 #271AA6 #6D1AA6
triadic
#271AA6 #A6271A #1AA627
tetradic
#271AA6 #A61A53 #99A61A #1AA66D
square
#271AA6 #A61A53 #99A61A #1AA66D
split-complementary
#271AA6 #A66D1A #53A61A
monochromatic
#0E093C #1B1271 #271AA6 #3322DB #6356E5

Accessibility & contrast

On white

11.77
#271AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#271AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271AA6
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271AA6#FFFFFF#000000##FFFFFF
##271AA61.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EAA
Deuteranopia (green-blind)
#0031A4
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #271aa6;
/* rgb */ color: rgb(39, 26, 166);
/* oklch */ color: oklch(36.2% 0.205 273.2);
Tailwind
colors: {
  custom: {
    50: '#785cc2',
    500: '#271aa6',
    950: '#000000',
  },
}
SCSS
$custom: #271aa6;
$custom-light: #785cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#271aa6",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 166
  },
  "hsl": {
    "h": 245.571,
    "s": 72.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.20524,
    "h": 273.2
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#271AA6
secondary
#BDC854
accent
#F038DF
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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