#271D72#271D72

#271D72 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.138 H 279.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#271D72
RGBrgb(39, 29, 114)
HSLhsl(247, 59%, 28%)
HSVhsv(247, 75%, 45%)
CMYKcmyk(65.8%, 74.6%, 0%, 55.3%)
CIE-LABlab(18.03, 31.65, -47.25)
CIE-LCHlch(18.03, 56.88, 303.82°)
OKLaboklab(30.7% 0.0234 -0.1363)
OKLCHoklch(30.7% 0.138 279.8)
XYZxyz(4.3124, 2.5246, 16.1764)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D72 #68721D
analogous
#1D3D72 #271D72 #511D72
triadic
#271D72 #72271D #1D7227
tetradic
#271D72 #721D3D #68721D #1D7251
square
#271D72 #721D3D #68721D #1D7251
split-complementary
#271D72 #72511D #3D721D
monochromatic
#080618 #161141 #271D72 #3829A3 #4D3CCD

Accessibility & contrast

On white

13.95
#271D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D72
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D72#FFFFFF#000000##FFFFFF
##271D721.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271d72;
/* rgb */ color: rgb(39, 29, 114);
/* oklch */ color: oklch(30.7% 0.138 279.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#271d72',
    950: '#000000',
  },
}
SCSS
$custom: #271d72;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#271d72",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 247.059,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30701,
    "c": 0.13832,
    "h": 279.8
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#271D72
secondary
#9BA645
accent
#E345D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271D72

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

Preview Lab → · Contrast checker → · Palette generator →

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