#271D8A#271D8A

#271D8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.169 H 276.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#271D8A
RGBrgb(39, 29, 138)
HSLhsl(246, 65%, 33%)
HSVhsv(246, 79%, 54%)
CMYKcmyk(71.7%, 79%, 0%, 45.9%)
CIE-LABlab(20.61, 39.73, -58.25)
CIE-LCHlch(20.61, 70.51, 304.30°)
OKLaboklab(33.3% 0.0179 -0.1684)
OKLCHoklch(33.3% 0.169 276.1)
XYZxyz(5.8620, 3.1445, 24.3378)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D8A #808A1D
analogous
#1D498A #271D8A #5E1D8A
triadic
#271D8A #8A271D #1D8A27
tetradic
#271D8A #8A1D49 #808A1D #1D8A5E
square
#271D8A #8A1D49 #808A1D #1D8A5E
split-complementary
#271D8A #8A5E1D #498A1D
monochromatic
#0A0825 #191257 #271D8A #3528BD #5649D9

Accessibility & contrast

On white

12.89
#271D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D8A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D8A#FFFFFF#000000##FFFFFF
##271D8A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271d8a;
/* rgb */ color: rgb(39, 29, 138);
/* oklch */ color: oklch(33.3% 0.169 276.1);
Tailwind
colors: {
  custom: {
    50: '#715cad',
    500: '#271d8a',
    950: '#000000',
  },
}
SCSS
$custom: #271d8a;
$custom-light: #715cad;
$custom-dark: #000000;
JSON
{
  "hex": "#271d8a",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 245.505,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33301,
    "c": 0.16934,
    "h": 276.1
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#271D8A
secondary
#B0BB48
accent
#E840D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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