#271C75#271C75

#271C75 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.143 H 279.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#271C75
RGBrgb(39, 28, 117)
HSLhsl(247, 61%, 28%)
HSVhsv(247, 76%, 46%)
CMYKcmyk(66.7%, 76.1%, 0%, 54.1%)
CIE-LABlab(18.12, 33.28, -49.03)
CIE-LCHlch(18.12, 59.26, 304.17°)
OKLaboklab(30.86% 0.0235 -0.1415)
OKLCHoklch(30.86% 0.143 279.4)
XYZxyz(4.4618, 2.5458, 17.0824)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C75 #6A751C
analogous
#1C3D75 #271C75 #531C75
triadic
#271C75 #75271C #1C7527
tetradic
#271C75 #751C3D #6A751C #1C7553
square
#271C75 #751C3D #6A751C #1C7553
split-complementary
#271C75 #75531C #3D751C
monochromatic
#080619 #171044 #271C75 #3728A6 #4E3BD0

Accessibility & contrast

On white

13.91
#271C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C75
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C75#FFFFFF#000000##FFFFFF
##271C751.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271c75;
/* rgb */ color: rgb(39, 28, 117);
/* oklch */ color: oklch(30.9% 0.143 279.4);
Tailwind
colors: {
  custom: {
    50: '#6d5a9e',
    500: '#271c75',
    950: '#000000',
  },
}
SCSS
$custom: #271c75;
$custom-light: #6d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#271c75",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 247.416,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30863,
    "c": 0.14345,
    "h": 279.4
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#271C75
secondary
#9DA944
accent
#E443D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271C75

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

Preview Lab → · Contrast checker → · Palette generator →

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