#271E86#271E86

#271E86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.163 H 276.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#271E86
RGBrgb(39, 30, 134)
HSLhsl(245, 63%, 32%)
HSVhsv(245, 78%, 53%)
CMYKcmyk(70.9%, 77.6%, 0%, 47.5%)
CIE-LABlab(20.36, 37.85, -56.15)
CIE-LCHlch(20.36, 67.72, 303.98°)
OKLaboklab(32.99% 0.0183 -0.1623)
OKLCHoklch(32.99% 0.163 276.4)
XYZxyz(5.6026, 3.0806, 22.8490)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E86 #7D861E
analogous
#1E4986 #271E86 #5B1E86
triadic
#271E86 #86271E #1E8627
tetradic
#271E86 #861E49 #7D861E #1E865B
square
#271E86 #861E49 #7D861E #1E865B
split-complementary
#271E86 #865B1E #49861E
monochromatic
#0A0822 #181354 #271E86 #3629B8 #5548D6

Accessibility & contrast

On white

12.99
#271E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E86
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E86#FFFFFF#000000##FFFFFF
##271E861.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271e86;
/* rgb */ color: rgb(39, 30, 134);
/* oklch */ color: oklch(33.0% 0.163 276.4);
Tailwind
colors: {
  custom: {
    50: '#705caa',
    500: '#271e86',
    950: '#000000',
  },
}
SCSS
$custom: #271e86;
$custom-light: #705caa;
$custom-dark: #000000;
JSON
{
  "hex": "#271e86",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 245.192,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32994,
    "c": 0.16333,
    "h": 276.4
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#271E86
secondary
#AFB847
accent
#E641D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271E86

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

Preview Lab → · Contrast checker → · Palette generator →

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