#271EA1#271EA1

#271EA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.196 H 273.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#271EA1
RGBrgb(39, 30, 161)
HSLhsl(244, 69%, 37%)
HSVhsv(244, 81%, 63%)
CMYKcmyk(75.8%, 81.4%, 0%, 36.9%)
CIE-LABlab(23.45, 46.62, -67.76)
CIE-LCHlch(23.45, 82.25, 304.53°)
OKLaboklab(36.06% 0.0117 -0.196)
OKLCHoklch(36.06% 0.196 273.4)
XYZxyz(7.7319, 3.9323, 34.0628)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EA1 #98A11E
analogous
#1E57A1 #271EA1 #681EA1
triadic
#271EA1 #A1271E #1EA127
tetradic
#271EA1 #A11E57 #98A11E #1EA168
square
#271EA1 #A11E57 #98A11E #1EA168
split-complementary
#271EA1 #A1681E #57A11E
monochromatic
#0E0B3A #1B146D #271EA1 #3328D5 #6359E0

Accessibility & contrast

On white

11.75
#271EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#271EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EA1
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EA1#FFFFFF#000000##FFFFFF
##271EA11.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #271ea1;
/* rgb */ color: rgb(39, 30, 161);
/* oklch */ color: oklch(36.1% 0.196 273.4);
Tailwind
colors: {
  custom: {
    50: '#775ebe',
    500: '#271ea1',
    950: '#000000',
  },
}
SCSS
$custom: #271ea1;
$custom-light: #775ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#271ea1",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 244.122,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36056,
    "c": 0.19637,
    "h": 273.4
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#271EA1
secondary
#BCC457
accent
#EB3CDF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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