#271D71#271D71

#271D71 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.137 H 279.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#271D71
RGBrgb(39, 29, 113)
HSLhsl(247, 59%, 28%)
HSVhsv(247, 74%, 44%)
CMYKcmyk(65.5%, 74.3%, 0%, 55.7%)
CIE-LABlab(17.93, 31.31, -46.78)
CIE-LCHlch(17.93, 56.29, 303.80°)
OKLaboklab(30.6% 0.0236 -0.1349)
OKLCHoklch(30.6% 0.137 279.9)
XYZxyz(4.2558, 2.5020, 15.8783)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D71 #67711D
analogous
#1D3D71 #271D71 #511D71
triadic
#271D71 #71271D #1D7127
tetradic
#271D71 #711D3D #67711D #1D7151
square
#271D71 #711D3D #67711D #1D7151
split-complementary
#271D71 #71511D #3D711D
monochromatic
#080618 #161140 #271D71 #3829A2 #4D3CCD

Accessibility & contrast

On white

14.00
#271D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D71
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D71#FFFFFF#000000##FFFFFF
##271D711.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d71;
/* rgb */ color: rgb(39, 29, 113);
/* oklch */ color: oklch(30.6% 0.137 279.9);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#271d71',
    950: '#000000',
  },
}
SCSS
$custom: #271d71;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#271d71",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 247.143,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30597,
    "c": 0.13698,
    "h": 279.9
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#271D71
secondary
#9AA544
accent
#E245D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271D71

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

Preview Lab → · Contrast checker → · Palette generator →

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