#271684#271684

#271684 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.168 H 277.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#271684
RGBrgb(39, 22, 132)
HSLhsl(249, 71%, 30%)
HSVhsv(249, 83%, 52%)
CMYKcmyk(70.5%, 83.3%, 0%, 48.2%)
CIE-LABlab(18.67, 41.41, -57.69)
CIE-LCHlch(18.67, 71.01, 305.67°)
OKLaboklab(31.75% 0.023 -0.1667)
OKLCHoklch(31.75% 0.168 277.8)
XYZxyz(5.2871, 2.6706, 22.0622)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271684 #738416
analogous
#163C84 #271684 #5E1684
triadic
#271684 #842716 #168427
tetradic
#271684 #84163C #738416 #16845E
square
#271684 #84163C #738416 #16845E
split-complementary
#271684 #845E16 #3C8416
monochromatic
#08051B #180D50 #271684 #361FB8 #5137DE

Accessibility & contrast

On white

13.69
#271684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271684
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271684#FFFFFF#000000##FFFFFF
##2716841.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271684;
/* rgb */ color: rgb(39, 22, 132);
/* oklch */ color: oklch(31.7% 0.168 277.8);
Tailwind
colors: {
  custom: {
    50: '#7157a9',
    500: '#271684',
    950: '#000000',
  },
}
SCSS
$custom: #271684;
$custom-light: #7157a9;
$custom-dark: #000000;
JSON
{
  "hex": "#271684",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 249.273,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31745,
    "c": 0.16823,
    "h": 277.8
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#271684
secondary
#A5B83D
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271684

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

Preview Lab → · Contrast checker → · Palette generator →

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