#271AB4#271AB4

#271AB4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.9% C 0.221 H 272.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#271AB4
RGBrgb(39, 26, 180)
HSLhsl(245, 75%, 40%)
HSVhsv(245, 86%, 71%)
CMYKcmyk(78.3%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.15, 54.19, -76.39)
CIE-LCHlch(25.15, 93.66, 305.35°)
OKLaboklab(37.9% 0.0078 -0.2209)
OKLCHoklch(37.9% 0.221 272)
XYZxyz(9.4416, 4.4644, 43.5353)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271AB4 #A7B41A
analogous
#1A5AB4 #271AB4 #741AB4
triadic
#271AB4 #B4271A #1AB427
tetradic
#271AB4 #B41A5A #A7B41A #1AB474
square
#271AB4 #B41A5A #A7B41A #1AB474
split-complementary
#271AB4 #B4741A #5AB41A
monochromatic
#100B49 #1B127F #271AB4 #3A2BE0 #6C60E8

Accessibility & contrast

On white

11.09
#271AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#271AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271AB4
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271AB4#FFFFFF#000000##FFFFFF
##271AB41.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #271ab4;
/* rgb */ color: rgb(39, 26, 180);
/* oklch */ color: oklch(37.9% 0.221 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c5dcc',
    500: '#271ab4',
    950: '#000000',
  },
}
SCSS
$custom: #271ab4;
$custom-light: #7c5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#271ab4",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 245.065,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37896,
    "c": 0.22108,
    "h": 272
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#271AB4
secondary
#C3CC5D
accent
#F136E2
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #271AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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