#271EA7#271EA7

#271EA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.203 H 272.9°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#271EA7
RGBrgb(39, 30, 167)
HSLhsl(244, 70%, 39%)
HSVhsv(244, 82%, 65%)
CMYKcmyk(76.6%, 82%, 0%, 34.5%)
CIE-LABlab(24.16, 48.50, -70.22)
CIE-LCHlch(24.16, 85.34, 304.63°)
OKLaboklab(36.76% 0.0102 -0.2032)
OKLCHoklch(36.76% 0.203 272.9)
XYZxyz(8.2737, 4.1490, 36.9165)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EA7 #9EA71E
analogous
#1E59A7 #271EA7 #6B1EA7
triadic
#271EA7 #A7271E #1EA727
tetradic
#271EA7 #A71E59 #9EA71E #1EA76B
square
#271EA7 #A71E59 #9EA71E #1EA76B
split-complementary
#271EA7 #A76B1E #59A71E
monochromatic
#0F0B3F #1B1573 #271EA7 #352AD9 #665DE2

Accessibility & contrast

On white

11.48
#271EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#271EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EA7
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EA7#FFFFFF#000000##FFFFFF
##271EA71.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0033A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #271ea7;
/* rgb */ color: rgb(39, 30, 167);
/* oklch */ color: oklch(36.8% 0.203 272.9);
Tailwind
colors: {
  custom: {
    50: '#785ec3',
    500: '#271ea7',
    950: '#000000',
  },
}
SCSS
$custom: #271ea7;
$custom-light: #785ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#271ea7",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 243.942,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36756,
    "c": 0.20341,
    "h": 272.9
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#271EA7
secondary
#BFC65B
accent
#EC3BE1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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