#271784#271784

#271784 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.167 H 277.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#271784
RGBrgb(39, 23, 132)
HSLhsl(249, 70%, 30%)
HSVhsv(249, 83%, 52%)
CMYKcmyk(70.5%, 82.6%, 0%, 48.2%)
CIE-LABlab(18.84, 40.92, -57.41)
CIE-LCHlch(18.84, 70.50, 305.48°)
OKLaboklab(31.86% 0.0225 -0.1659)
OKLCHoklch(31.86% 0.167 277.7)
XYZxyz(5.3066, 2.7096, 22.0687)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271784 #748417
analogous
#173E84 #271784 #5D1784
triadic
#271784 #842717 #178427
tetradic
#271784 #84173E #748417 #17845D
square
#271784 #84173E #748417 #17845D
split-complementary
#271784 #845D17 #3E8417
monochromatic
#08051C #180E50 #271784 #3620B8 #5139DC

Accessibility & contrast

On white

13.62
#271784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271784
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271784#FFFFFF#000000##FFFFFF
##2717841.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271784;
/* rgb */ color: rgb(39, 23, 132);
/* oklch */ color: oklch(31.9% 0.167 277.7);
Tailwind
colors: {
  custom: {
    50: '#7158a9',
    500: '#271784',
    950: '#000000',
  },
}
SCSS
$custom: #271784;
$custom-light: #7158a9;
$custom-dark: #000000;
JSON
{
  "hex": "#271784",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 248.807,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31862,
    "c": 0.16739,
    "h": 277.7
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#271784
secondary
#A6B83F
accent
#ED3BD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271784

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

Preview Lab → · Contrast checker → · Palette generator →

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