#271C88#271C88

#271C88 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.168 H 276.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#271C88
RGBrgb(39, 28, 136)
HSLhsl(246, 66%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(71.3%, 79.4%, 0%, 46.7%)
CIE-LABlab(20.20, 39.62, -57.68)
CIE-LCHlch(20.20, 69.98, 304.48°)
OKLaboklab(32.94% 0.0189 -0.1667)
OKLCHoklch(32.94% 0.168 276.5)
XYZxyz(5.6944, 3.0389, 23.5742)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C88 #7D881C
analogous
#1C4788 #271C88 #5D1C88
triadic
#271C88 #88271C #1C8827
tetradic
#271C88 #881C47 #7D881C #1C885D
square
#271C88 #881C47 #7D881C #1C885D
split-complementary
#271C88 #885D1C #47881C
monochromatic
#0A0722 #181255 #271C88 #3626BB #5546D9

Accessibility & contrast

On white

13.06
#271C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C88
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C88#FFFFFF#000000##FFFFFF
##271C881.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271c88;
/* rgb */ color: rgb(39, 28, 136);
/* oklch */ color: oklch(32.9% 0.168 276.5);
Tailwind
colors: {
  custom: {
    50: '#715bac',
    500: '#271c88',
    950: '#000000',
  },
}
SCSS
$custom: #271c88;
$custom-light: #715bac;
$custom-dark: #000000;
JSON
{
  "hex": "#271c88",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 246.111,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32944,
    "c": 0.16779,
    "h": 276.5
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#271C88
secondary
#AFBA45
accent
#E93FD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C88

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

Preview Lab → · Contrast checker → · Palette generator →

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