#271A83#271A83

#271A83 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.163 H 277.5°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#271A83
RGBrgb(39, 26, 131)
HSLhsl(247, 67%, 31%)
HSVhsv(247, 80%, 51%)
CMYKcmyk(70.2%, 80.2%, 0%, 48.6%)
CIE-LABlab(19.26, 39.06, -56.09)
CIE-LCHlch(19.26, 68.35, 304.85°)
OKLaboklab(32.12% 0.0213 -0.1621)
OKLCHoklch(32.12% 0.163 277.5)
XYZxyz(5.3015, 2.8083, 21.7310)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A83 #76831A
analogous
#1A4183 #271A83 #5B1A83
triadic
#271A83 #83271A #1A8327
tetradic
#271A83 #831A41 #76831A #1A835B
square
#271A83 #831A41 #76831A #1A835B
split-complementary
#271A83 #835B1A #41831A
monochromatic
#09061D #181050 #271A83 #3624B6 #523FD9

Accessibility & contrast

On white

13.45
#271A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A83
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A83#FFFFFF#000000##FFFFFF
##271A831.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271a83;
/* rgb */ color: rgb(39, 26, 131);
/* oklch */ color: oklch(32.1% 0.163 277.5);
Tailwind
colors: {
  custom: {
    50: '#7059a8',
    500: '#271a83',
    950: '#000000',
  },
}
SCSS
$custom: #271a83;
$custom-light: #7059a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271a83",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 247.429,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32119,
    "c": 0.16345,
    "h": 277.5
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#271A83
secondary
#A8B742
accent
#EA3ED5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271A83

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

Preview Lab → · Contrast checker → · Palette generator →

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