#271588#271588

#271588 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.174 H 277.3°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#271588
RGBrgb(39, 21, 136)
HSLhsl(249, 73%, 31%)
HSVhsv(249, 85%, 53%)
CMYKcmyk(71.3%, 84.6%, 0%, 46.7%)
CIE-LABlab(18.99, 43.13, -59.68)
CIE-LCHlch(18.99, 73.63, 305.85°)
OKLaboklab(32.1% 0.0221 -0.1724)
OKLCHoklch(32.1% 0.174 277.3)
XYZxyz(5.5474, 2.7447, 23.5252)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271588 #768815
analogous
#153D88 #271588 #601588
triadic
#271588 #882715 #158827
tetradic
#271588 #88153D #768815 #158860
square
#271588 #88153D #768815 #158860
split-complementary
#271588 #886015 #3D8815
monochromatic
#09051E #180D53 #271588 #361DBD #5237E0

Accessibility & contrast

On white

13.56
#271588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271588
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271588#FFFFFF#000000##FFFFFF
##2715881.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271588;
/* rgb */ color: rgb(39, 21, 136);
/* oklch */ color: oklch(32.1% 0.174 277.3);
Tailwind
colors: {
  custom: {
    50: '#7257ac',
    500: '#271588',
    950: '#000000',
  },
}
SCSS
$custom: #271588;
$custom-light: #7257ac;
$custom-dark: #000000;
JSON
{
  "hex": "#271588",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 249.391,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32104,
    "c": 0.17384,
    "h": 277.3
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#271588
secondary
#A8BC3D
accent
#F038D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271588

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

Preview Lab → · Contrast checker → · Palette generator →

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