#271788#271788

#271788 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.172 H 277.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#271788
RGBrgb(39, 23, 136)
HSLhsl(248, 71%, 31%)
HSVhsv(248, 83%, 53%)
CMYKcmyk(71.3%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.31, 42.18, -59.15)
CIE-LCHlch(19.31, 72.65, 305.49°)
OKLaboklab(32.33% 0.0213 -0.1709)
OKLCHoklch(32.33% 0.172 277.1)
XYZxyz(5.5856, 2.8212, 23.5380)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271788 #788817
analogous
#173F88 #271788 #5F1788
triadic
#271788 #882717 #178827
tetradic
#271788 #88173F #788817 #17885F
square
#271788 #88173F #788817 #17885F
split-complementary
#271788 #885F17 #3F8817
monochromatic
#09051F #180E54 #271788 #3620BC #523BDE

Accessibility & contrast

On white

13.42
#271788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271788
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271788#FFFFFF#000000##FFFFFF
##2717881.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271788;
/* rgb */ color: rgb(39, 23, 136);
/* oklch */ color: oklch(32.3% 0.172 277.1);
Tailwind
colors: {
  custom: {
    50: '#7158ac',
    500: '#271788',
    950: '#000000',
  },
}
SCSS
$custom: #271788;
$custom-light: #7158ac;
$custom-dark: #000000;
JSON
{
  "hex": "#271788",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 248.496,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.17224,
    "h": 277.1
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#271788
secondary
#AABC3F
accent
#EE3AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271788

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

Preview Lab → · Contrast checker → · Palette generator →

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