#271586#271586

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

Color values

HEX#271586
RGBrgb(39, 21, 134)
HSLhsl(250, 73%, 30%)
HSVhsv(250, 84%, 53%)
CMYKcmyk(70.9%, 84.3%, 0%, 47.5%)
CIE-LABlab(18.75, 42.51, -58.82)
CIE-LCHlch(18.75, 72.57, 305.85°)
OKLaboklab(31.87% 0.0228 -0.1699)
OKLCHoklch(31.87% 0.171 277.6)
XYZxyz(5.4065, 2.6884, 22.7836)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271586 #748615
analogous
#153B86 #271586 #601586
triadic
#271586 #862715 #158627
tetradic
#271586 #86153B #748615 #158660
square
#271586 #86153B #748615 #158660
split-complementary
#271586 #866015 #3B8615
monochromatic
#08041C #180D51 #271586 #361DBB #5136DF

Accessibility & contrast

On white

13.66
#271586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271586
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271586#FFFFFF#000000##FFFFFF
##2715861.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271586;
/* rgb */ color: rgb(39, 21, 134);
/* oklch */ color: oklch(31.9% 0.171 277.6);
Tailwind
colors: {
  custom: {
    50: '#7157aa',
    500: '#271586',
    950: '#000000',
  },
}
SCSS
$custom: #271586;
$custom-light: #7157aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271586",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 249.558,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.17146,
    "h": 277.6
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#271586
secondary
#A6BA3C
accent
#F038D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271586

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

Preview Lab → · Contrast checker → · Palette generator →

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