#271B6D#271B6D

#271B6D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.134 H 281.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#271B6D
RGBrgb(39, 27, 109)
HSLhsl(249, 60%, 27%)
HSVhsv(249, 75%, 43%)
CMYKcmyk(64.2%, 75.2%, 0%, 57.3%)
CIE-LABlab(17.08, 31.16, -45.57)
CIE-LCHlch(17.08, 55.21, 304.36°)
OKLaboklab(29.87% 0.0261 -0.1314)
OKLCHoklch(29.87% 0.134 281.2)
XYZxyz(3.9881, 2.3190, 14.7025)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B6D #616D1B
analogous
#1B386D #271B6D #501B6D
triadic
#271B6D #6D271B #1B6D27
tetradic
#271B6D #6D1B38 #616D1B #1B6D50
square
#271B6D #6D1B38 #616D1B #1B6D50
split-complementary
#271B6D #6D501B #386D1B
monochromatic
#090619 #150F3C #271B6D #39279E #4C35CD

Accessibility & contrast

On white

14.35
#271B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B6D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B6D#FFFFFF#000000##FFFFFF
##271B6D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271b6d;
/* rgb */ color: rgb(39, 27, 109);
/* oklch */ color: oklch(29.9% 0.134 281.2);
Tailwind
colors: {
  custom: {
    50: '#6b5998',
    500: '#271b6d',
    950: '#000000',
  },
}
SCSS
$custom: #271b6d;
$custom-light: #6b5998;
$custom-dark: #000000;
JSON
{
  "hex": "#271b6d",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 248.78,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29868,
    "c": 0.13395,
    "h": 281.2
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#271B6D
secondary
#94A242
accent
#E344CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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