#271A71#271A71

#271A71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.140 H 280.6°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#271A71
RGBrgb(39, 26, 113)
HSLhsl(249, 63%, 27%)
HSVhsv(249, 77%, 44%)
CMYKcmyk(65.5%, 77%, 0%, 55.7%)
CIE-LABlab(17.28, 33.11, -47.84)
CIE-LCHlch(17.28, 58.18, 304.69°)
OKLaboklab(30.14% 0.0259 -0.138)
OKLCHoklch(30.14% 0.14 280.6)
XYZxyz(4.1858, 2.3621, 15.8549)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A71 #64711A
analogous
#1A3871 #271A71 #531A71
triadic
#271A71 #71271A #1A7127
tetradic
#271A71 #711A38 #64711A #1A7153
square
#271A71 #711A38 #64711A #1A7153
split-complementary
#271A71 #71531A #38711A
monochromatic
#090619 #160F3F #271A71 #3825A3 #4C35D0

Accessibility & contrast

On white

14.26
#271A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A71
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A71#FFFFFF#000000##FFFFFF
##271A711.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271a71;
/* rgb */ color: rgb(39, 26, 113);
/* oklch */ color: oklch(30.1% 0.140 280.6);
Tailwind
colors: {
  custom: {
    50: '#6c589b',
    500: '#271a71',
    950: '#000000',
  },
}
SCSS
$custom: #271a71;
$custom-light: #6c589b;
$custom-dark: #000000;
JSON
{
  "hex": "#271a71",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 248.966,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30139,
    "c": 0.14042,
    "h": 280.6
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#271A71
secondary
#97A641
accent
#E642CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271A71

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

Preview Lab → · Contrast checker → · Palette generator →

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