#271C6F#271C6F

#271C6F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.135 H 280.6°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#271C6F
RGBrgb(39, 28, 111)
HSLhsl(248, 60%, 27%)
HSVhsv(248, 75%, 44%)
CMYKcmyk(64.9%, 74.8%, 0%, 56.5%)
CIE-LABlab(17.50, 31.24, -46.18)
CIE-LCHlch(17.50, 55.75, 304.08°)
OKLaboklab(30.23% 0.0249 -0.1332)
OKLCHoklch(30.23% 0.135 280.6)
XYZxyz(4.1203, 2.4092, 15.2837)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C6F #646F1C
analogous
#1C3A6F #271C6F #511C6F
triadic
#271C6F #6F271C #1C6F27
tetradic
#271C6F #6F1C3A #646F1C #1C6F51
square
#271C6F #6F1C3A #646F1C #1C6F51
split-complementary
#271C6F #6F511C #3A6F1C
monochromatic
#090618 #16103E #271C6F #3828A0 #4C38CD

Accessibility & contrast

On white

14.17
#271C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C6F
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C6F#FFFFFF#000000##FFFFFF
##271C6F1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271c6f;
/* rgb */ color: rgb(39, 28, 111);
/* oklch */ color: oklch(30.2% 0.135 280.6);
Tailwind
colors: {
  custom: {
    50: '#6b5999',
    500: '#271c6f',
    950: '#000000',
  },
}
SCSS
$custom: #271c6f;
$custom-light: #6b5999;
$custom-dark: #000000;
JSON
{
  "hex": "#271c6f",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 247.952,
    "s": 59.712,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30232,
    "c": 0.13546,
    "h": 280.6
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#271C6F
secondary
#97A443
accent
#E345CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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