#271D7D#271D7D

#271D7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 277.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#271D7D
RGBrgb(39, 29, 125)
HSLhsl(246, 62%, 30%)
HSVhsv(246, 77%, 49%)
CMYKcmyk(68.8%, 76.8%, 0%, 51%)
CIE-LABlab(19.18, 35.40, -52.41)
CIE-LCHlch(19.18, 63.24, 304.04°)
OKLaboklab(31.87% 0.021 -0.1514)
OKLCHoklch(31.87% 0.153 277.9)
XYZxyz(4.9765, 2.7903, 19.6744)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D7D #737D1D
analogous
#1D437D #271D7D #571D7D
triadic
#271D7D #7D271D #1D7D27
tetradic
#271D7D #7D1D43 #737D1D #1D7D57
square
#271D7D #7D1D43 #737D1D #1D7D57
split-complementary
#271D7D #7D571D #437D1D
monochromatic
#08061A #18114B #271D7D #3629AF #5141D3

Accessibility & contrast

On white

13.48
#271D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D7D
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D7D#FFFFFF#000000##FFFFFF
##271D7D1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271d7d;
/* rgb */ color: rgb(39, 29, 125);
/* oklch */ color: oklch(31.9% 0.153 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e5ba4',
    500: '#271d7d',
    950: '#000000',
  },
}
SCSS
$custom: #271d7d;
$custom-light: #6e5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#271d7d",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 246.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.15282,
    "h": 277.9
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#271D7D
secondary
#A5B145
accent
#E542D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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