#271E87#271E87

#271E87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.165 H 276.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#271E87
RGBrgb(39, 30, 135)
HSLhsl(245, 64%, 32%)
HSVhsv(245, 78%, 53%)
CMYKcmyk(71.1%, 77.8%, 0%, 47.1%)
CIE-LABlab(20.47, 38.18, -56.60)
CIE-LCHlch(20.47, 68.28, 304.00°)
OKLaboklab(33.1% 0.0181 -0.1636)
OKLCHoklch(33.1% 0.165 276.3)
XYZxyz(5.6727, 3.1086, 23.2180)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E87 #7E871E
analogous
#1E4987 #271E87 #5C1E87
triadic
#271E87 #87271E #1E8727
tetradic
#271E87 #871E49 #7E871E #1E875C
square
#271E87 #871E49 #7E871E #1E875C
split-complementary
#271E87 #875C1E #49871E
monochromatic
#0A0823 #191355 #271E87 #3529B9 #5549D7

Accessibility & contrast

On white

12.95
#271E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E87
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E87#FFFFFF#000000##FFFFFF
##271E871.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271e87;
/* rgb */ color: rgb(39, 30, 135);
/* oklch */ color: oklch(33.1% 0.165 276.3);
Tailwind
colors: {
  custom: {
    50: '#715cab',
    500: '#271e87',
    950: '#000000',
  },
}
SCSS
$custom: #271e87;
$custom-light: #715cab;
$custom-dark: #000000;
JSON
{
  "hex": "#271e87",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 245.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33104,
    "c": 0.1646,
    "h": 276.3
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#271E87
secondary
#AFB948
accent
#E741D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271E87

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

Preview Lab → · Contrast checker → · Palette generator →

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