#271C91#271C91

#271C91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.179 H 275.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#271C91
RGBrgb(39, 28, 145)
HSLhsl(246, 68%, 34%)
HSVhsv(246, 81%, 57%)
CMYKcmyk(73.1%, 80.7%, 0%, 43.1%)
CIE-LABlab(21.23, 42.54, -61.60)
CIE-LCHlch(21.23, 74.86, 304.63°)
OKLaboklab(33.97% 0.0166 -0.1781)
OKLCHoklch(33.97% 0.179 275.3)
XYZxyz(6.3611, 3.3056, 27.0854)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C91 #86911C
analogous
#1C4C91 #271C91 #621C91
triadic
#271C91 #91271C #1C9127
tetradic
#271C91 #911C4C #86911C #1C9162
square
#271C91 #911C4C #86911C #1C9162
split-complementary
#271C91 #91621C #4C911C
monochromatic
#0B082A #19125E #271C91 #3526C4 #594BDC

Accessibility & contrast

On white

12.64
#271C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C91
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C91#FFFFFF#000000##FFFFFF
##271C911.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002E8F
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271c91;
/* rgb */ color: rgb(39, 28, 145);
/* oklch */ color: oklch(34.0% 0.179 275.3);
Tailwind
colors: {
  custom: {
    50: '#735bb3',
    500: '#271c91',
    950: '#000000',
  },
}
SCSS
$custom: #271c91;
$custom-light: #735bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#271c91",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 245.641,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33966,
    "c": 0.17887,
    "h": 275.3
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#271C91
secondary
#B4BE4A
accent
#EB3DDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271C91

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

Preview Lab → · Contrast checker → · Palette generator →

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