#271E82#271E82

#271E82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.158 H 277.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#271E82
RGBrgb(39, 30, 130)
HSLhsl(245, 63%, 31%)
HSVhsv(245, 77%, 51%)
CMYKcmyk(70%, 76.9%, 0%, 49%)
CIE-LABlab(19.93, 36.51, -54.35)
CIE-LCHlch(19.93, 65.47, 303.89°)
OKLaboklab(32.56% 0.0193 -0.157)
OKLCHoklch(32.56% 0.158 277)
XYZxyz(5.3289, 2.9711, 21.4074)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E82 #79821E
analogous
#1E4782 #271E82 #591E82
triadic
#271E82 #82271E #1E8227
tetradic
#271E82 #821E47 #79821E #1E8259
square
#271E82 #821E47 #79821E #1E8259
split-complementary
#271E82 #82591E #47821E
monochromatic
#09071F #181350 #271E82 #3629B4 #5346D4

Accessibility & contrast

On white

13.17
#271E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E82
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E82#FFFFFF#000000##FFFFFF
##271E821.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271e82;
/* rgb */ color: rgb(39, 30, 130);
/* oklch */ color: oklch(32.6% 0.158 277.0);
Tailwind
colors: {
  custom: {
    50: '#6f5ca7',
    500: '#271e82',
    950: '#000000',
  },
}
SCSS
$custom: #271e82;
$custom-light: #6f5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#271e82",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 245.4,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.15823,
    "h": 277
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#271E82
secondary
#ABB547
accent
#E642D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271E82

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

Preview Lab → · Contrast checker → · Palette generator →

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