#271A76#271A76

#271A76 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.147 H 279.7°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#271A76
RGBrgb(39, 26, 118)
HSLhsl(248, 64%, 28%)
HSVhsv(248, 78%, 46%)
CMYKcmyk(66.9%, 78%, 0%, 53.7%)
CIE-LABlab(17.82, 34.78, -50.18)
CIE-LCHlch(17.82, 61.06, 304.73°)
OKLaboklab(30.68% 0.0247 -0.1448)
OKLCHoklch(30.68% 0.147 279.7)
XYZxyz(4.4751, 2.4778, 17.3785)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A76 #69761A
analogous
#1A3B76 #271A76 #551A76
triadic
#271A76 #76271A #1A7627
tetradic
#271A76 #761A3B #69761A #1A7655
square
#271A76 #761A3B #69761A #1A7655
split-complementary
#271A76 #76551A #3B761A
monochromatic
#080619 #160F44 #271A76 #3825A8 #4D37D3

Accessibility & contrast

On white

14.04
#271A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A76
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A76#FFFFFF#000000##FFFFFF
##271A761.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271a76;
/* rgb */ color: rgb(39, 26, 118);
/* oklch */ color: oklch(30.7% 0.147 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d599e',
    500: '#271a76',
    950: '#000000',
  },
}
SCSS
$custom: #271a76;
$custom-light: #6d599e;
$custom-dark: #000000;
JSON
{
  "hex": "#271a76",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 248.478,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30678,
    "c": 0.14694,
    "h": 279.7
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#271A76
secondary
#9CAB41
accent
#E741CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271A76

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

Preview Lab → · Contrast checker → · Palette generator →

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