#271C8E#271C8E

#271C8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.175 H 275.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#271C8E
RGBrgb(39, 28, 142)
HSLhsl(246, 67%, 33%)
HSVhsv(246, 80%, 56%)
CMYKcmyk(72.5%, 80.3%, 0%, 44.3%)
CIE-LABlab(20.88, 41.57, -60.30)
CIE-LCHlch(20.88, 73.24, 304.58°)
OKLaboklab(33.62% 0.0174 -0.1743)
OKLCHoklch(33.62% 0.175 275.7)
XYZxyz(6.1328, 3.2143, 25.8832)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C8E #838E1C
analogous
#1C4A8E #271C8E #601C8E
triadic
#271C8E #8E271C #1C8E27
tetradic
#271C8E #8E1C4A #838E1C #1C8E60
square
#271C8E #8E1C4A #838E1C #1C8E60
split-complementary
#271C8E #8E601C #4A8E1C
monochromatic
#0B0828 #19125B #271C8E #3526C1 #5749DB

Accessibility & contrast

On white

12.78
#271C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#271C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C8E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C8E#FFFFFF#000000##FFFFFF
##271C8E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271c8e;
/* rgb */ color: rgb(39, 28, 142);
/* oklch */ color: oklch(33.6% 0.175 275.7);
Tailwind
colors: {
  custom: {
    50: '#725bb0',
    500: '#271c8e',
    950: '#000000',
  },
}
SCSS
$custom: #271c8e;
$custom-light: #725bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#271c8e",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 245.789,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33623,
    "c": 0.17521,
    "h": 275.7
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#271C8E
secondary
#B2BD49
accent
#EA3ED9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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