#271C96#271C96

#271C96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.185 H 274.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#271C96
RGBrgb(39, 28, 150)
HSLhsl(245, 69%, 35%)
HSVhsv(245, 81%, 59%)
CMYKcmyk(74%, 81.3%, 0%, 41.2%)
CIE-LABlab(21.81, 44.13, -63.73)
CIE-LCHlch(21.81, 77.52, 304.70°)
OKLaboklab(34.54% 0.0152 -0.1843)
OKLCHoklch(34.54% 0.185 274.7)
XYZxyz(6.7552, 3.4632, 29.1607)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C96 #8B961C
analogous
#1C4E96 #271C96 #641C96
triadic
#271C96 #96271C #1C9627
tetradic
#271C96 #961C4E #8B961C #1C9664
square
#271C96 #961C4E #8B961C #1C9664
split-complementary
#271C96 #96641C #4E961C
monochromatic
#0C092F #1A1262 #271C96 #3426CA #5B4EDE

Accessibility & contrast

On white

12.41
#271C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C96
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C96#FFFFFF#000000##FFFFFF
##271C961.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271c96;
/* rgb */ color: rgb(39, 28, 150);
/* oklch */ color: oklch(34.5% 0.185 274.7);
Tailwind
colors: {
  custom: {
    50: '#745cb6',
    500: '#271c96',
    950: '#000000',
  },
}
SCSS
$custom: #271c96;
$custom-light: #745cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#271c96",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 245.41,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.18492,
    "h": 274.7
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#271C96
secondary
#B6C14D
accent
#EB3CDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271C96

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

Preview Lab → · Contrast checker → · Palette generator →

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