#271A97#271A97

#271A97 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.188 H 274.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#271A97
RGBrgb(39, 26, 151)
HSLhsl(246, 71%, 35%)
HSVhsv(246, 83%, 59%)
CMYKcmyk(74.2%, 82.8%, 0%, 40.8%)
CIE-LABlab(21.59, 45.43, -64.70)
CIE-LCHlch(21.59, 79.06, 305.07°)
OKLaboklab(34.43% 0.0157 -0.1871)
OKLCHoklch(34.43% 0.188 274.8)
XYZxyz(6.7902, 3.4038, 29.5713)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A97 #8A971A
analogous
#1A4C97 #271A97 #661A97
triadic
#271A97 #97271A #1A9727
tetradic
#271A97 #971A4C #8A971A #1A9766
square
#271A97 #971A4C #8A971A #1A9766
split-complementary
#271A97 #97661A #4C971A
monochromatic
#0C082F #1A1163 #271A97 #3423CB #5B4BE0

Accessibility & contrast

On white

12.49
#271A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#271A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A97
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A97#FFFFFF#000000##FFFFFF
##271A971.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271a97;
/* rgb */ color: rgb(39, 26, 151);
/* oklch */ color: oklch(34.4% 0.188 274.8);
Tailwind
colors: {
  custom: {
    50: '#755bb7',
    500: '#271a97',
    950: '#000000',
  },
}
SCSS
$custom: #271a97;
$custom-light: #755bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#271a97",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 246.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.18775,
    "h": 274.8
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#271A97
secondary
#B6C24B
accent
#ED3ADB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271A97

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

Preview Lab → · Contrast checker → · Palette generator →

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