#271C84#271C84

#271C84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.163 H 277.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#271C84
RGBrgb(39, 28, 132)
HSLhsl(246, 65%, 31%)
HSVhsv(246, 79%, 52%)
CMYKcmyk(70.5%, 78.8%, 0%, 48.2%)
CIE-LABlab(19.75, 38.30, -55.91)
CIE-LCHlch(19.75, 67.77, 304.42°)
OKLaboklab(32.5% 0.0199 -0.1616)
OKLCHoklch(32.5% 0.163 277)
XYZxyz(5.4155, 2.9273, 22.1050)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C84 #79841C
analogous
#1C4584 #271C84 #5B1C84
triadic
#271C84 #84271C #1C8427
tetradic
#271C84 #841C45 #79841C #1C845B
square
#271C84 #841C45 #79841C #1C845B
split-complementary
#271C84 #845B1C #45841C
monochromatic
#09071F #181152 #271C84 #3627B6 #5343D7

Accessibility & contrast

On white

13.24
#271C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C84
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C84#FFFFFF#000000##FFFFFF
##271C841.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271c84;
/* rgb */ color: rgb(39, 28, 132);
/* oklch */ color: oklch(32.5% 0.163 277.0);
Tailwind
colors: {
  custom: {
    50: '#705ba9',
    500: '#271c84',
    950: '#000000',
  },
}
SCSS
$custom: #271c84;
$custom-light: #705ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#271c84",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 246.346,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32496,
    "c": 0.16278,
    "h": 277
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#271C84
secondary
#ABB745
accent
#E840D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C84

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

Preview Lab → · Contrast checker → · Palette generator →

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