#271C85#271C85

#271C85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.164 H 276.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#271C85
RGBrgb(39, 28, 133)
HSLhsl(246, 65%, 32%)
HSVhsv(246, 79%, 52%)
CMYKcmyk(70.7%, 78.9%, 0%, 47.8%)
CIE-LABlab(19.86, 38.63, -56.35)
CIE-LCHlch(19.86, 68.32, 304.43°)
OKLaboklab(32.61% 0.0197 -0.1629)
OKLCHoklch(32.61% 0.164 276.9)
XYZxyz(5.4842, 2.9548, 22.4671)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C85 #7A851C
analogous
#1C4685 #271C85 #5C1C85
triadic
#271C85 #85271C #1C8527
tetradic
#271C85 #851C46 #7A851C #1C855C
square
#271C85 #851C46 #7A851C #1C855C
split-complementary
#271C85 #855C1C #46851C
monochromatic
#090720 #181152 #271C85 #3627B8 #5344D8

Accessibility & contrast

On white

13.20
#271C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C85
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C85#FFFFFF#000000##FFFFFF
##271C851.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271c85;
/* rgb */ color: rgb(39, 28, 133);
/* oklch */ color: oklch(32.6% 0.164 276.9);
Tailwind
colors: {
  custom: {
    50: '#705baa',
    500: '#271c85',
    950: '#000000',
  },
}
SCSS
$custom: #271c85;
$custom-light: #705baa;
$custom-dark: #000000;
JSON
{
  "hex": "#271c85",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 246.286,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32608,
    "c": 0.16404,
    "h": 276.9
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#271C85
secondary
#ACB845
accent
#E840D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C85

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

Preview Lab → · Contrast checker → · Palette generator →

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