#271A78#271A78

#271A78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.150 H 279.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#271A78
RGBrgb(39, 26, 120)
HSLhsl(248, 64%, 29%)
HSVhsv(248, 78%, 47%)
CMYKcmyk(67.5%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.03, 35.45, -51.11)
CIE-LCHlch(18.03, 62.20, 304.74°)
OKLaboklab(30.9% 0.0242 -0.1475)
OKLCHoklch(30.9% 0.15 279.3)
XYZxyz(4.5952, 2.5258, 18.0110)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A78 #6B781A
analogous
#1A3C78 #271A78 #561A78
triadic
#271A78 #78271A #1A7827
tetradic
#271A78 #781A3C #6B781A #1A7856
square
#271A78 #781A3C #6B781A #1A7856
split-complementary
#271A78 #78561A #3C781A
monochromatic
#080519 #170F46 #271A78 #3725AA #4E38D4

Accessibility & contrast

On white

13.95
#271A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A78
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A78#FFFFFF#000000##FFFFFF
##271A781.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271a78;
/* rgb */ color: rgb(39, 26, 120);
/* oklch */ color: oklch(30.9% 0.150 279.3);
Tailwind
colors: {
  custom: {
    50: '#6d59a0',
    500: '#271a78',
    950: '#000000',
  },
}
SCSS
$custom: #271a78;
$custom-light: #6d59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271a78",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 248.298,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30896,
    "c": 0.14952,
    "h": 279.3
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#271A78
secondary
#9EAC41
accent
#E740D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271A78

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

Preview Lab → · Contrast checker → · Palette generator →

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