#271687#271687

#271687 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.172 H 277.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#271687
RGBrgb(39, 22, 135)
HSLhsl(249, 72%, 31%)
HSVhsv(249, 84%, 53%)
CMYKcmyk(71.1%, 83.7%, 0%, 47.1%)
CIE-LABlab(19.03, 42.35, -58.99)
CIE-LCHlch(19.03, 72.62, 305.68°)
OKLaboklab(32.1% 0.022 -0.1704)
OKLCHoklch(32.1% 0.172 277.4)
XYZxyz(5.4954, 2.7539, 23.1589)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271687 #768716
analogous
#163D87 #271687 #5F1687
triadic
#271687 #872716 #168727
tetradic
#271687 #87163D #768716 #16875F
square
#271687 #87163D #768716 #16875F
split-complementary
#271687 #875F16 #3D8716
monochromatic
#09051E #180D52 #271687 #361FBC #5239DF

Accessibility & contrast

On white

13.54
#271687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271687
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271687#FFFFFF#000000##FFFFFF
##2716871.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271687;
/* rgb */ color: rgb(39, 22, 135);
/* oklch */ color: oklch(32.1% 0.172 277.4);
Tailwind
colors: {
  custom: {
    50: '#7157ab',
    500: '#271687',
    950: '#000000',
  },
}
SCSS
$custom: #271687;
$custom-light: #7157ab;
$custom-dark: #000000;
JSON
{
  "hex": "#271687",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 249.027,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32096,
    "c": 0.17185,
    "h": 277.4
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#271687
secondary
#A8BB3E
accent
#EF39D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271687

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

Preview Lab → · Contrast checker → · Palette generator →

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