#271C8B#271C8B

#271C8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.172 H 276.1°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#271C8B
RGBrgb(39, 28, 139)
HSLhsl(246, 66%, 33%)
HSVhsv(246, 80%, 55%)
CMYKcmyk(71.9%, 79.9%, 0%, 45.5%)
CIE-LABlab(20.54, 40.60, -59.00)
CIE-LCHlch(20.54, 71.62, 304.53°)
OKLaboklab(33.28% 0.0181 -0.1705)
OKLCHoklch(33.28% 0.172 276.1)
XYZxyz(5.9106, 3.1254, 24.7129)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C8B #808B1C
analogous
#1C488B #271C8B #5E1C8B
triadic
#271C8B #8B271C #1C8B27
tetradic
#271C8B #8B1C48 #808B1C #1C8B5E
square
#271C8B #8B1C48 #808B1C #1C8B5E
split-complementary
#271C8B #8B5E1C #488B1C
monochromatic
#0A0725 #191258 #271C8B #3526BE #5647DA

Accessibility & contrast

On white

12.92
#271C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C8B
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C8B#FFFFFF#000000##FFFFFF
##271C8B1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271c8b;
/* rgb */ color: rgb(39, 28, 139);
/* oklch */ color: oklch(33.3% 0.172 276.1);
Tailwind
colors: {
  custom: {
    50: '#725bae',
    500: '#271c8b',
    950: '#000000',
  },
}
SCSS
$custom: #271c8b;
$custom-light: #725bae;
$custom-dark: #000000;
JSON
{
  "hex": "#271c8b",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 245.946,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33282,
    "c": 0.17151,
    "h": 276.1
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#271C8B
secondary
#B0BC47
accent
#E93ED8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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