#271C7A#271C7A

#271C7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.150 H 278.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#271C7A
RGBrgb(39, 28, 122)
HSLhsl(247, 63%, 29%)
HSVhsv(247, 77%, 48%)
CMYKcmyk(68%, 77%, 0%, 52.2%)
CIE-LABlab(18.66, 34.97, -51.36)
CIE-LCHlch(18.66, 62.14, 304.25°)
OKLaboklab(31.4% 0.0224 -0.1483)
OKLCHoklch(31.4% 0.15 278.6)
XYZxyz(4.7637, 2.6666, 18.6722)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C7A #6F7A1C
analogous
#1C407A #271C7A #561C7A
triadic
#271C7A #7A271C #1C7A27
tetradic
#271C7A #7A1C40 #6F7A1C #1C7A56
square
#271C7A #7A1C40 #6F7A1C #1C7A56
split-complementary
#271C7A #7A561C #407A1C
monochromatic
#080619 #171148 #271C7A #3727AC #4F3ED3

Accessibility & contrast

On white

13.70
#271C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C7A
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C7A#FFFFFF#000000##FFFFFF
##271C7A1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271c7a;
/* rgb */ color: rgb(39, 28, 122);
/* oklch */ color: oklch(31.4% 0.150 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e5aa1',
    500: '#271c7a',
    950: '#000000',
  },
}
SCSS
$custom: #271c7a;
$custom-light: #6e5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#271c7a",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 247.021,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31399,
    "c": 0.15,
    "h": 278.6
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#271C7A
secondary
#A2AE44
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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