#271C9A#271C9A

#271C9A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.190 H 274.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#271C9A
RGBrgb(39, 28, 154)
HSLhsl(245, 69%, 36%)
HSVhsv(245, 82%, 60%)
CMYKcmyk(74.7%, 81.8%, 0%, 39.6%)
CIE-LABlab(22.28, 45.40, -65.41)
CIE-LCHlch(22.28, 79.62, 304.76°)
OKLaboklab(35.01% 0.0142 -0.1892)
OKLCHoklch(35.01% 0.19 274.3)
XYZxyz(7.0828, 3.5942, 30.8861)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C9A #8F9A1C
analogous
#1C509A #271C9A #661C9A
triadic
#271C9A #9A271C #1C9A27
tetradic
#271C9A #9A1C50 #8F9A1C #1C9A66
square
#271C9A #9A1C50 #8F9A1C #1C9A66
split-complementary
#271C9A #9A661C #509A1C
monochromatic
#0D0932 #1A1366 #271C9A #3425CE #5D51DF

Accessibility & contrast

On white

12.22
#271C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#271C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C9A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C9A#FFFFFF#000000##FFFFFF
##271C9A1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c9a;
/* rgb */ color: rgb(39, 28, 154);
/* oklch */ color: oklch(35.0% 0.190 274.3);
Tailwind
colors: {
  custom: {
    50: '#755cb9',
    500: '#271c9a',
    950: '#000000',
  },
}
SCSS
$custom: #271c9a;
$custom-light: #755cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#271c9a",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 154
  },
  "hsl": {
    "h": 245.238,
    "s": 69.231,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.1897,
    "h": 274.3
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#271C9A
secondary
#B8C250
accent
#EC3CDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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