#271A8B#271A8B

#271A8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.173 H 276.3°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#271A8B
RGBrgb(39, 26, 139)
HSLhsl(247, 68%, 32%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(71.9%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.18, 41.64, -59.60)
CIE-LCHlch(20.18, 72.70, 304.94°)
OKLaboklab(33.03% 0.0191 -0.1723)
OKLCHoklch(33.03% 0.173 276.3)
XYZxyz(5.8648, 3.0337, 24.6976)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A8B #7E8B1A
analogous
#1A458B #271A8B #601A8B
triadic
#271A8B #8B271A #1A8B27
tetradic
#271A8B #8B1A45 #7E8B1A #1A8B60
square
#271A8B #8B1A45 #7E8B1A #1A8B60
split-complementary
#271A8B #8B601A #458B1A
monochromatic
#0A0724 #191057 #271A8B #3524BF #5543DC

Accessibility & contrast

On white

13.07
#271A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A8B
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A8B#FFFFFF#000000##FFFFFF
##271A8B1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271a8b;
/* rgb */ color: rgb(39, 26, 139);
/* oklch */ color: oklch(33.0% 0.173 276.3);
Tailwind
colors: {
  custom: {
    50: '#725aae',
    500: '#271a8b',
    950: '#000000',
  },
}
SCSS
$custom: #271a8b;
$custom-light: #725aae;
$custom-dark: #000000;
JSON
{
  "hex": "#271a8b",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 246.903,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3303,
    "c": 0.17331,
    "h": 276.3
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#271A8B
secondary
#AFBD44
accent
#EB3CD7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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