#271688#271688

#271688 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.173 H 277.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#271688
RGBrgb(39, 22, 136)
HSLhsl(249, 72%, 31%)
HSVhsv(249, 84%, 53%)
CMYKcmyk(71.3%, 83.8%, 0%, 46.7%)
CIE-LABlab(19.15, 42.66, -59.42)
CIE-LCHlch(19.15, 73.15, 305.68°)
OKLaboklab(32.21% 0.0217 -0.1717)
OKLCHoklch(32.21% 0.173 277.2)
XYZxyz(5.5661, 2.7822, 23.5315)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271688 #778816
analogous
#163E88 #271688 #601688
triadic
#271688 #882716 #168827
tetradic
#271688 #88163E #778816 #168860
square
#271688 #88163E #778816 #168860
split-complementary
#271688 #886016 #3E8816
monochromatic
#09051F #180D53 #271688 #361FBD #5239DF

Accessibility & contrast

On white

13.49
#271688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271688
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271688#FFFFFF#000000##FFFFFF
##2716881.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271688;
/* rgb */ color: rgb(39, 22, 136);
/* oklch */ color: oklch(32.2% 0.173 277.2);
Tailwind
colors: {
  custom: {
    50: '#7258ac',
    500: '#271688',
    950: '#000000',
  },
}
SCSS
$custom: #271688;
$custom-light: #7258ac;
$custom-dark: #000000;
JSON
{
  "hex": "#271688",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 248.947,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32214,
    "c": 0.17306,
    "h": 277.2
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#271688
secondary
#A9BC3E
accent
#EF39D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271688

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

Preview Lab → · Contrast checker → · Palette generator →

#271688 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva