#271786#271786

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

Color values

HEX#271786
RGBrgb(39, 23, 134)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 53%)
CMYKcmyk(70.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.08, 41.55, -58.28)
CIE-LCHlch(19.08, 71.58, 305.49°)
OKLaboklab(32.09% 0.0219 -0.1684)
OKLCHoklch(32.09% 0.17 277.4)
XYZxyz(5.4448, 2.7649, 22.7964)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271786 #768617
analogous
#173E86 #271786 #5E1786
triadic
#271786 #862717 #178627
tetradic
#271786 #86173E #768617 #17865E
square
#271786 #86173E #768617 #17865E
split-complementary
#271786 #865E17 #3E8617
monochromatic
#09051E #180E52 #271786 #3620BA #523ADD

Accessibility & contrast

On white

13.52
#271786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271786
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271786#FFFFFF#000000##FFFFFF
##2717861.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271786;
/* rgb */ color: rgb(39, 23, 134);
/* oklch */ color: oklch(32.1% 0.170 277.4);
Tailwind
colors: {
  custom: {
    50: '#7158aa',
    500: '#271786',
    950: '#000000',
  },
}
SCSS
$custom: #271786;
$custom-light: #7158aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271786",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 248.649,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32094,
    "c": 0.16982,
    "h": 277.4
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#271786
secondary
#A8BA3F
accent
#ED3AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271786

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

Preview Lab → · Contrast checker → · Palette generator →

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