#271A99#271A99

#271A99 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.190 H 274.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#271A99
RGBrgb(39, 26, 153)
HSLhsl(246, 71%, 35%)
HSVhsv(246, 83%, 60%)
CMYKcmyk(74.5%, 83%, 0%, 40%)
CIE-LABlab(21.83, 46.05, -65.54)
CIE-LCHlch(21.83, 80.10, 305.09°)
OKLaboklab(34.66% 0.0152 -0.1895)
OKLCHoklch(34.66% 0.19 274.6)
XYZxyz(6.9540, 3.4693, 30.4340)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A99 #8C991A
analogous
#1A4C99 #271A99 #671A99
triadic
#271A99 #99271A #1A9927
tetradic
#271A99 #991A4C #8C991A #1A9967
square
#271A99 #991A4C #8C991A #1A9967
split-complementary
#271A99 #99671A #4C991A
monochromatic
#0C0830 #1A1165 #271A99 #3423CD #5C4DE1

Accessibility & contrast

On white

12.40
#271A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#271A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A99
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A99#FFFFFF#000000##FFFFFF
##271A991.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#002E97
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271a99;
/* rgb */ color: rgb(39, 26, 153);
/* oklch */ color: oklch(34.7% 0.190 274.6);
Tailwind
colors: {
  custom: {
    50: '#755bb8',
    500: '#271a99',
    950: '#000000',
  },
}
SCSS
$custom: #271a99;
$custom-light: #755bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271a99",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 246.142,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34661,
    "c": 0.19012,
    "h": 274.6
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#271A99
secondary
#B7C34C
accent
#EE3ADB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271A99

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

Preview Lab → · Contrast checker → · Palette generator →

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