#271D7F#271D7F

#271D7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 277.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#271D7F
RGBrgb(39, 29, 127)
HSLhsl(246, 63%, 31%)
HSVhsv(246, 77%, 50%)
CMYKcmyk(69.3%, 77.2%, 0%, 50.2%)
CIE-LABlab(19.40, 36.07, -53.32)
CIE-LCHlch(19.40, 64.38, 304.08°)
OKLaboklab(32.09% 0.0206 -0.154)
OKLCHoklch(32.09% 0.155 277.6)
XYZxyz(5.1056, 2.8419, 20.3540)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D7F #757F1D
analogous
#1D447F #271D7F #581D7F
triadic
#271D7F #7F271D #1D7F27
tetradic
#271D7F #7F1D44 #757F1D #1D7F58
square
#271D7F #7F1D44 #757F1D #1D7F58
split-complementary
#271D7F #7F581D #447F1D
monochromatic
#08061B #18124D #271D7F #3628B1 #5142D4

Accessibility & contrast

On white

13.39
#271D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D7F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D7F#FFFFFF#000000##FFFFFF
##271D7F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271d7f;
/* rgb */ color: rgb(39, 29, 127);
/* oklch */ color: oklch(32.1% 0.155 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ba5',
    500: '#271d7f',
    950: '#000000',
  },
}
SCSS
$custom: #271d7f;
$custom-light: #6f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#271d7f",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 246.122,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32085,
    "c": 0.15541,
    "h": 277.6
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#271D7F
secondary
#A7B245
accent
#E642D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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