#271886#271886

#271886 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.169 H 277.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#271886
RGBrgb(39, 24, 134)
HSLhsl(248, 70%, 31%)
HSVhsv(248, 82%, 53%)
CMYKcmyk(70.9%, 82.1%, 0%, 47.5%)
CIE-LABlab(19.25, 41.06, -58.00)
CIE-LCHlch(19.25, 71.06, 305.29°)
OKLaboklab(32.21% 0.0214 -0.1676)
OKLCHoklch(32.21% 0.169 277.3)
XYZxyz(5.4650, 2.8053, 22.8031)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271886 #778618
analogous
#184086 #271886 #5E1886
triadic
#271886 #862718 #188627
tetradic
#271886 #861840 #778618 #18865E
square
#271886 #861840 #778618 #18865E
split-complementary
#271886 #865E18 #408618
monochromatic
#09051E #180F52 #271886 #3621BA #523CDC

Accessibility & contrast

On white

13.45
#271886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271886
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271886#FFFFFF#000000##FFFFFF
##2718861.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271886;
/* rgb */ color: rgb(39, 24, 134);
/* oklch */ color: oklch(32.2% 0.169 277.3);
Tailwind
colors: {
  custom: {
    50: '#7158aa',
    500: '#271886',
    950: '#000000',
  },
}
SCSS
$custom: #271886;
$custom-light: #7158aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271886",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 248.182,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32212,
    "c": 0.16896,
    "h": 277.3
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#271886
secondary
#A9BA40
accent
#EC3BD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271886

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

Preview Lab → · Contrast checker → · Palette generator →

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