#271ABE#271ABE

#271ABE is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.1% C 0.232 H 271.3°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#271ABE
RGBrgb(39, 26, 190)
HSLhsl(245, 76%, 42%)
HSVhsv(245, 86%, 75%)
CMYKcmyk(79.5%, 86.3%, 0%, 25.5%)
CIE-LABlab(26.41, 57.09, -80.24)
CIE-LCHlch(26.41, 98.48, 305.43°)
OKLaboklab(39.11% 0.0052 -0.2321)
OKLCHoklch(39.11% 0.232 271.3)
XYZxyz(10.4972, 4.8866, 49.0952)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271ABE #B1BE1A
analogous
#1A5FBE #271ABE #791ABE
triadic
#271ABE #BE271A #1ABE27
tetradic
#271ABE #BE1A5F #B1BE1A #1ABE79
square
#271ABE #BE1A5F #B1BE1A #1ABE79
split-complementary
#271ABE #BE791A #5FBE1A
monochromatic
#110B52 #1C1388 #271ABE #4032E3 #7268EA

Accessibility & contrast

On white

10.62
#271ABE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#271ABE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271ABE
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271ABE#FFFFFF#000000##FFFFFF
##271ABE1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046C2
Deuteranopia (green-blind)
#0036BB
Tritanopia (blue-blind)
#005271
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #271abe;
/* rgb */ color: rgb(39, 26, 190);
/* oklch */ color: oklch(39.1% 0.232 271.3);
Tailwind
colors: {
  custom: {
    50: '#7e5ed3',
    500: '#271abe',
    950: '#000000',
  },
}
SCSS
$custom: #271abe;
$custom-light: #7e5ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#271abe",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 190
  },
  "hsl": {
    "h": 244.756,
    "s": 75.926,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.23214,
    "h": 271.3
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#271ABE
secondary
#C7D064
accent
#F335E4
background
#F8F5FD
surface
#F0E9FA
border
#CBC5D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #271ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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