#271C99#271C99

#271C99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.189 H 274.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#271C99
RGBrgb(39, 28, 153)
HSLhsl(245, 69%, 35%)
HSVhsv(245, 82%, 60%)
CMYKcmyk(74.5%, 81.7%, 0%, 40%)
CIE-LABlab(22.16, 45.08, -64.99)
CIE-LCHlch(22.16, 79.10, 304.75°)
OKLaboklab(34.89% 0.0145 -0.1879)
OKLCHoklch(34.89% 0.189 274.4)
XYZxyz(6.9998, 3.5610, 30.4493)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C99 #8E991C
analogous
#1C4F99 #271C99 #651C99
triadic
#271C99 #99271C #1C9927
tetradic
#271C99 #991C4F #8E991C #1C9965
square
#271C99 #991C4F #8E991C #1C9965
split-complementary
#271C99 #99651C #4F991C
monochromatic
#0D0932 #1A1365 #271C99 #3425CD #5D50DF

Accessibility & contrast

On white

12.26
#271C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#271C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C99
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C99#FFFFFF#000000##FFFFFF
##271C991.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c99;
/* rgb */ color: rgb(39, 28, 153);
/* oklch */ color: oklch(34.9% 0.189 274.4);
Tailwind
colors: {
  custom: {
    50: '#755cb8',
    500: '#271c99',
    950: '#000000',
  },
}
SCSS
$custom: #271c99;
$custom-light: #755cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271c99",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 245.28,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3489,
    "c": 0.1885,
    "h": 274.4
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#271C99
secondary
#B8C24F
accent
#EC3CDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271C99

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

Preview Lab → · Contrast checker → · Palette generator →

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