#271686#271686

#271686 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.171 H 277.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#271686
RGBrgb(39, 22, 134)
HSLhsl(249, 72%, 31%)
HSVhsv(249, 84%, 53%)
CMYKcmyk(70.9%, 83.6%, 0%, 47.5%)
CIE-LABlab(18.91, 42.04, -58.56)
CIE-LCHlch(18.91, 72.08, 305.67°)
OKLaboklab(31.98% 0.0223 -0.1692)
OKLCHoklch(31.98% 0.171 277.5)
XYZxyz(5.4253, 2.7259, 22.7899)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271686 #758616
analogous
#163D86 #271686 #5F1686
triadic
#271686 #862716 #168627
tetradic
#271686 #86163D #758616 #16865F
square
#271686 #86163D #758616 #16865F
split-complementary
#271686 #865F16 #3D8616
monochromatic
#08051D #180D51 #271686 #361FBB #5138DE

Accessibility & contrast

On white

13.59
#271686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271686
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271686#FFFFFF#000000##FFFFFF
##2716861.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271686;
/* rgb */ color: rgb(39, 22, 134);
/* oklch */ color: oklch(32.0% 0.171 277.5);
Tailwind
colors: {
  custom: {
    50: '#7157aa',
    500: '#271686',
    950: '#000000',
  },
}
SCSS
$custom: #271686;
$custom-light: #7157aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271686",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 249.107,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31979,
    "c": 0.17065,
    "h": 277.5
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271686

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

Preview Lab → · Contrast checker → · Palette generator →

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