#271A85#271A85

#271A85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.166 H 277.2°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#271A85
RGBrgb(39, 26, 133)
HSLhsl(247, 67%, 31%)
HSVhsv(247, 80%, 52%)
CMYKcmyk(70.7%, 80.5%, 0%, 47.8%)
CIE-LABlab(19.49, 39.71, -56.97)
CIE-LCHlch(19.49, 69.45, 304.88°)
OKLaboklab(32.35% 0.0207 -0.1646)
OKLCHoklch(32.35% 0.166 277.2)
XYZxyz(5.4384, 2.8631, 22.4518)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A85 #78851A
analogous
#1A4285 #271A85 #5C1A85
triadic
#271A85 #85271A #1A8527
tetradic
#271A85 #851A42 #78851A #1A855C
square
#271A85 #851A42 #78851A #1A855C
split-complementary
#271A85 #855C1A #42851A
monochromatic
#09061F #181052 #271A85 #3624B8 #5240DA

Accessibility & contrast

On white

13.35
#271A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A85
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A85#FFFFFF#000000##FFFFFF
##271A851.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271a85;
/* rgb */ color: rgb(39, 26, 133);
/* oklch */ color: oklch(32.3% 0.166 277.2);
Tailwind
colors: {
  custom: {
    50: '#7059aa',
    500: '#271a85',
    950: '#000000',
  },
}
SCSS
$custom: #271a85;
$custom-light: #7059aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271a85",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 247.29,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32345,
    "c": 0.16594,
    "h": 277.2
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271A85

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

Preview Lab → · Contrast checker → · Palette generator →

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