#271582#271582

#271582 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.167 H 278.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#271582
RGBrgb(39, 21, 130)
HSLhsl(250, 72%, 30%)
HSVhsv(250, 84%, 51%)
CMYKcmyk(70%, 83.8%, 0%, 49%)
CIE-LABlab(18.27, 41.27, -57.09)
CIE-LCHlch(18.27, 70.44, 305.86°)
OKLaboklab(31.4% 0.024 -0.1649)
OKLCHoklch(31.4% 0.167 278.3)
XYZxyz(5.1328, 2.5789, 21.3421)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271582 #708215
analogous
#153A82 #271582 #5D1582
triadic
#271582 #822715 #158227
tetradic
#271582 #82153A #708215 #15825D
square
#271582 #82153A #708215 #15825D
split-complementary
#271582 #825D15 #3A8215
monochromatic
#08041A #170C4D #271582 #371EB7 #5033DE

Accessibility & contrast

On white

13.85
#271582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271582
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271582#FFFFFF#000000##FFFFFF
##2715821.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271582;
/* rgb */ color: rgb(39, 21, 130);
/* oklch */ color: oklch(31.4% 0.167 278.3);
Tailwind
colors: {
  custom: {
    50: '#7057a8',
    500: '#271582',
    950: '#000000',
  },
}
SCSS
$custom: #271582;
$custom-light: #7057a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271582",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 249.908,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31398,
    "c": 0.16664,
    "h": 278.3
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#271582
secondary
#A2B73C
accent
#EF39D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271582

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

Preview Lab → · Contrast checker → · Palette generator →

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