#271C71#271C71

#271C71 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.138 H 280.2°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#271C71
RGBrgb(39, 28, 113)
HSLhsl(248, 60%, 28%)
HSVhsv(248, 75%, 44%)
CMYKcmyk(65.5%, 75.2%, 0%, 55.7%)
CIE-LABlab(17.71, 31.92, -47.14)
CIE-LCHlch(17.71, 56.93, 304.10°)
OKLaboklab(30.44% 0.0244 -0.136)
OKLCHoklch(30.44% 0.138 280.2)
XYZxyz(4.2316, 2.4538, 15.8702)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C71 #66711C
analogous
#1C3B71 #271C71 #521C71
triadic
#271C71 #71271C #1C7127
tetradic
#271C71 #711C3B #66711C #1C7152
square
#271C71 #711C3B #66711C #1C7152
split-complementary
#271C71 #71521C #3B711C
monochromatic
#080619 #161040 #271C71 #3828A2 #4D39CE

Accessibility & contrast

On white

14.09
#271C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C71
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C71#FFFFFF#000000##FFFFFF
##271C711.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271c71;
/* rgb */ color: rgb(39, 28, 113);
/* oklch */ color: oklch(30.4% 0.138 280.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#271c71',
    950: '#000000',
  },
}
SCSS
$custom: #271c71;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#271c71",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 247.765,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30441,
    "c": 0.13815,
    "h": 280.2
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#271C71
secondary
#99A643
accent
#E344CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271C71

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

Preview Lab → · Contrast checker → · Palette generator →

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