#271680#271680

#271680 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.163 H 278.5°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#271680
RGBrgb(39, 22, 128)
HSLhsl(250, 71%, 29%)
HSVhsv(250, 83%, 50%)
CMYKcmyk(69.5%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.20, 40.16, -55.94)
CIE-LCHlch(18.20, 68.86, 305.67°)
OKLaboklab(31.28% 0.0242 -0.1616)
OKLCHoklch(31.28% 0.163 278.5)
XYZxyz(5.0186, 2.5632, 20.6482)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271680 #6F8016
analogous
#163A80 #271680 #5C1680
triadic
#271680 #802716 #168027
tetradic
#271680 #80163A #6F8016 #16805C
square
#271680 #80163A #6F8016 #16805C
split-complementary
#271680 #805C16 #3A8016
monochromatic
#08041A #170D4C #271680 #371FB4 #4F34DC

Accessibility & contrast

On white

13.88
#271680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271680
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271680#FFFFFF#000000##FFFFFF
##2716801.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271680;
/* rgb */ color: rgb(39, 22, 128);
/* oklch */ color: oklch(31.3% 0.163 278.5);
Tailwind
colors: {
  custom: {
    50: '#7057a6',
    500: '#271680',
    950: '#000000',
  },
}
SCSS
$custom: #271680;
$custom-light: #7057a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271680",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 249.623,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31281,
    "c": 0.16336,
    "h": 278.5
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#271680
secondary
#A2B53D
accent
#ED3AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #271680

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

Preview Lab → · Contrast checker → · Palette generator →

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