#271E84#271E84

#271E84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.161 H 276.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#271E84
RGBrgb(39, 30, 132)
HSLhsl(245, 63%, 32%)
HSVhsv(245, 77%, 52%)
CMYKcmyk(70.5%, 77.3%, 0%, 48.2%)
CIE-LABlab(20.14, 37.18, -55.26)
CIE-LCHlch(20.14, 66.60, 303.94°)
OKLaboklab(32.77% 0.0188 -0.1597)
OKLCHoklch(32.77% 0.161 276.7)
XYZxyz(5.4645, 3.0253, 22.1213)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E84 #7B841E
analogous
#1E4884 #271E84 #5A1E84
triadic
#271E84 #84271E #1E8427
tetradic
#271E84 #841E48 #7B841E #1E845A
square
#271E84 #841E48 #7B841E #1E845A
split-complementary
#271E84 #845A1E #48841E
monochromatic
#0A0720 #181352 #271E84 #3629B6 #5447D5

Accessibility & contrast

On white

13.08
#271E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E84
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E84#FFFFFF#000000##FFFFFF
##271E841.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271e84;
/* rgb */ color: rgb(39, 30, 132);
/* oklch */ color: oklch(32.8% 0.161 276.7);
Tailwind
colors: {
  custom: {
    50: '#705ca9',
    500: '#271e84',
    950: '#000000',
  },
}
SCSS
$custom: #271e84;
$custom-light: #705ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#271e84",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 245.294,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32774,
    "c": 0.16078,
    "h": 276.7
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#271E84
secondary
#ADB747
accent
#E642D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271E84

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

Preview Lab → · Contrast checker → · Palette generator →

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