#271A9A#271A9A

#271A9A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.191 H 274.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#271A9A
RGBrgb(39, 26, 154)
HSLhsl(246, 71%, 35%)
HSVhsv(246, 83%, 60%)
CMYKcmyk(74.7%, 83.1%, 0%, 39.6%)
CIE-LABlab(21.95, 46.36, -65.95)
CIE-LCHlch(21.95, 80.62, 305.10°)
OKLaboklab(34.78% 0.0149 -0.1907)
OKLCHoklch(34.78% 0.191 274.5)
XYZxyz(7.0369, 3.5025, 30.8708)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A9A #8D9A1A
analogous
#1A4D9A #271A9A #671A9A
triadic
#271A9A #9A271A #1A9A27
tetradic
#271A9A #9A1A4D #8D9A1A #1A9A67
square
#271A9A #9A1A4D #8D9A1A #1A9A67
split-complementary
#271A9A #9A671A #4D9A1A
monochromatic
#0C0831 #1A1166 #271A9A #3423CE #5C4DE1

Accessibility & contrast

On white

12.35
#271A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#271A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A9A
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A9A#FFFFFF#000000##FFFFFF
##271A9A1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9D
Deuteranopia (green-blind)
#002F98
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271a9a;
/* rgb */ color: rgb(39, 26, 154);
/* oklch */ color: oklch(34.8% 0.191 274.5);
Tailwind
colors: {
  custom: {
    50: '#765bb9',
    500: '#271a9a',
    950: '#000000',
  },
}
SCSS
$custom: #271a9a;
$custom-light: #765bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#271a9a",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 246.094,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34779,
    "c": 0.19129,
    "h": 274.5
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#271A9A
secondary
#B7C34D
accent
#EE3ADC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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