#271A77#271A77

#271A77 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.148 H 279.5°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#271A77
RGBrgb(39, 26, 119)
HSLhsl(248, 64%, 28%)
HSVhsv(248, 78%, 47%)
CMYKcmyk(67.2%, 78.2%, 0%, 53.3%)
CIE-LABlab(17.93, 35.11, -50.64)
CIE-LCHlch(17.93, 61.63, 304.73°)
OKLaboklab(30.79% 0.0245 -0.1462)
OKLCHoklch(30.79% 0.148 279.5)
XYZxyz(4.5348, 2.5017, 17.6931)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A77 #6A771A
analogous
#1A3B77 #271A77 #551A77
triadic
#271A77 #77271A #1A7727
tetradic
#271A77 #771A3B #6A771A #1A7755
square
#271A77 #771A3B #6A771A #1A7755
split-complementary
#271A77 #77551A #3B771A
monochromatic
#080519 #170F45 #271A77 #3725A9 #4E38D3

Accessibility & contrast

On white

14.00
#271A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A77
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A77#FFFFFF#000000##FFFFFF
##271A771.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271a77;
/* rgb */ color: rgb(39, 26, 119);
/* oklch */ color: oklch(30.8% 0.148 279.5);
Tailwind
colors: {
  custom: {
    50: '#6d599f',
    500: '#271a77',
    950: '#000000',
  },
}
SCSS
$custom: #271a77;
$custom-light: #6d599f;
$custom-dark: #000000;
JSON
{
  "hex": "#271a77",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 248.387,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30786,
    "c": 0.14823,
    "h": 279.5
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#271A77
secondary
#9DAC41
accent
#E741D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271A77

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

Preview Lab → · Contrast checker → · Palette generator →

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