#271A80#271A80

#271A80 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.160 H 277.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#271A80
RGBrgb(39, 26, 128)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 80%, 50%)
CMYKcmyk(69.5%, 79.7%, 0%, 49.8%)
CIE-LABlab(18.92, 38.08, -54.75)
CIE-LCHlch(18.92, 66.69, 304.82°)
OKLaboklab(31.78% 0.0221 -0.1582)
OKLCHoklch(31.78% 0.16 277.9)
XYZxyz(5.1011, 2.7282, 20.6757)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A80 #73801A
analogous
#1A4080 #271A80 #5A1A80
triadic
#271A80 #80271A #1A8027
tetradic
#271A80 #801A40 #73801A #1A805A
square
#271A80 #801A40 #73801A #1A805A
split-complementary
#271A80 #805A1A #40801A
monochromatic
#08051A #18104D #271A80 #3624B3 #513DD8

Accessibility & contrast

On white

13.59
#271A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A80
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A80#FFFFFF#000000##FFFFFF
##271A801.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271a80;
/* rgb */ color: rgb(39, 26, 128);
/* oklch */ color: oklch(31.8% 0.160 277.9);
Tailwind
colors: {
  custom: {
    50: '#6f59a6',
    500: '#271a80',
    950: '#000000',
  },
}
SCSS
$custom: #271a80;
$custom-light: #6f59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271a80",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 247.647,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31782,
    "c": 0.15969,
    "h": 277.9
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#271A80
secondary
#A5B442
accent
#E93FD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271A80

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

Preview Lab → · Contrast checker → · Palette generator →

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