#271D88#271D88

#271D88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.167 H 276.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#271D88
RGBrgb(39, 29, 136)
HSLhsl(246, 65%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(71.3%, 78.7%, 0%, 46.7%)
CIE-LABlab(20.39, 39.07, -57.37)
CIE-LCHlch(20.39, 69.41, 304.26°)
OKLaboklab(33.08% 0.0184 -0.1658)
OKLCHoklch(33.08% 0.167 276.3)
XYZxyz(5.7185, 3.0871, 23.5823)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D88 #7E881D
analogous
#1D4988 #271D88 #5C1D88
triadic
#271D88 #88271D #1D8827
tetradic
#271D88 #881D49 #7E881D #1D885C
square
#271D88 #881D49 #7E881D #1D885C
split-complementary
#271D88 #885C1D #49881D
monochromatic
#0A0723 #191256 #271D88 #3528BA #5548D8

Accessibility & contrast

On white

12.98
#271D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D88
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D88#FFFFFF#000000##FFFFFF
##271D881.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271d88;
/* rgb */ color: rgb(39, 29, 136);
/* oklch */ color: oklch(33.1% 0.167 276.3);
Tailwind
colors: {
  custom: {
    50: '#715bac',
    500: '#271d88',
    950: '#000000',
  },
}
SCSS
$custom: #271d88;
$custom-light: #715bac;
$custom-dark: #000000;
JSON
{
  "hex": "#271d88",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 245.607,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33077,
    "c": 0.16684,
    "h": 276.3
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#271D88
secondary
#AFBA47
accent
#E840D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D88

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

Preview Lab → · Contrast checker → · Palette generator →

#271D88 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva