#271A82#271A82

#271A82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.162 H 277.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#271A82
RGBrgb(39, 26, 130)
HSLhsl(248, 67%, 31%)
HSVhsv(248, 80%, 51%)
CMYKcmyk(70%, 80%, 0%, 49%)
CIE-LABlab(19.15, 38.73, -55.64)
CIE-LCHlch(19.15, 67.80, 304.84°)
OKLaboklab(32.01% 0.0215 -0.1608)
OKLCHoklch(32.01% 0.162 277.6)
XYZxyz(5.2341, 2.7814, 21.3758)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A82 #75821A
analogous
#1A4182 #271A82 #5B1A82
triadic
#271A82 #82271A #1A8227
tetradic
#271A82 #821A41 #75821A #1A825B
square
#271A82 #821A41 #75821A #1A825B
split-complementary
#271A82 #825B1A #41821A
monochromatic
#08061C #18104F #271A82 #3624B5 #513ED8

Accessibility & contrast

On white

13.49
#271A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A82
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A82#FFFFFF#000000##FFFFFF
##271A821.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271a82;
/* rgb */ color: rgb(39, 26, 130);
/* oklch */ color: oklch(32.0% 0.162 277.6);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#271a82',
    950: '#000000',
  },
}
SCSS
$custom: #271a82;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271a82",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 247.5,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.1622,
    "h": 277.6
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#271A82
secondary
#A7B642
accent
#EA3ED4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A82

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

Preview Lab → · Contrast checker → · Palette generator →

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