#271C74#271C74

#271C74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.142 H 279.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#271C74
RGBrgb(39, 28, 116)
HSLhsl(248, 61%, 28%)
HSVhsv(248, 76%, 45%)
CMYKcmyk(66.4%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.02, 32.94, -48.56)
CIE-LCHlch(18.02, 58.68, 304.15°)
OKLaboklab(30.76% 0.0238 -0.1401)
OKLCHoklch(30.76% 0.142 279.6)
XYZxyz(4.4033, 2.5225, 16.7744)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C74 #69741C
analogous
#1C3D74 #271C74 #531C74
triadic
#271C74 #74271C #1C7427
tetradic
#271C74 #741C3D #69741C #1C7453
square
#271C74 #741C3D #69741C #1C7453
split-complementary
#271C74 #74531C #3D741C
monochromatic
#080619 #161043 #271C74 #3828A5 #4D3BD0

Accessibility & contrast

On white

13.96
#271C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C74
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C74#FFFFFF#000000##FFFFFF
##271C741.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271c74;
/* rgb */ color: rgb(39, 28, 116);
/* oklch */ color: oklch(30.8% 0.142 279.6);
Tailwind
colors: {
  custom: {
    50: '#6c5a9d',
    500: '#271c74',
    950: '#000000',
  },
}
SCSS
$custom: #271c74;
$custom-light: #6c5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#271c74",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 247.5,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30756,
    "c": 0.14213,
    "h": 279.6
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#271C74
secondary
#9CA843
accent
#E444D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271C74

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

Preview Lab → · Contrast checker → · Palette generator →

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