#271E71#271E71

#271E71 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.136 H 279.7°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#271E71
RGBrgb(39, 30, 113)
HSLhsl(247, 58%, 28%)
HSVhsv(247, 73%, 44%)
CMYKcmyk(65.5%, 73.5%, 0%, 55.7%)
CIE-LABlab(18.15, 30.69, -46.41)
CIE-LCHlch(18.15, 55.64, 303.48°)
OKLaboklab(30.76% 0.0228 -0.1338)
OKLCHoklch(30.76% 0.136 279.7)
XYZxyz(4.2807, 2.5518, 15.8866)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E71 #68711E
analogous
#1E3E71 #271E71 #501E71
triadic
#271E71 #71271E #1E7127
tetradic
#271E71 #711E3E #68711E #1E7150
square
#271E71 #711E3E #68711E #1E7150
split-complementary
#271E71 #71501E #3E711E
monochromatic
#080618 #161141 #271E71 #382BA1 #4D3ECC

Accessibility & contrast

On white

13.90
#271E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E71
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E71#FFFFFF#000000##FFFFFF
##271E711.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271e71;
/* rgb */ color: rgb(39, 30, 113);
/* oklch */ color: oklch(30.8% 0.136 279.7);
Tailwind
colors: {
  custom: {
    50: '#6b5b9b',
    500: '#271e71',
    950: '#000000',
  },
}
SCSS
$custom: #271e71;
$custom-light: #6b5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#271e71",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 246.506,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.13578,
    "h": 279.7
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#271E71
secondary
#9BA546
accent
#E147D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271E71

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

Preview Lab → · Contrast checker → · Palette generator →

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