#271C8C#271C8C

#271C8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.173 H 275.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#271C8C
RGBrgb(39, 28, 140)
HSLhsl(246, 67%, 33%)
HSVhsv(246, 80%, 55%)
CMYKcmyk(72.1%, 80%, 0%, 45.1%)
CIE-LABlab(20.65, 40.92, -59.44)
CIE-LCHlch(20.65, 72.16, 304.55°)
OKLaboklab(33.4% 0.0179 -0.1718)
OKLCHoklch(33.4% 0.173 275.9)
XYZxyz(5.9840, 3.1547, 25.0994)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C8C #818C1C
analogous
#1C498C #271C8C #5F1C8C
triadic
#271C8C #8C271C #1C8C27
tetradic
#271C8C #8C1C49 #818C1C #1C8C5F
square
#271C8C #8C1C49 #818C1C #1C8C5F
split-complementary
#271C8C #8C5F1C #498C1C
monochromatic
#0B0826 #191259 #271C8C #3526BF #5648DA

Accessibility & contrast

On white

12.88
#271C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C8C
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C8C#FFFFFF#000000##FFFFFF
##271C8C1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271c8c;
/* rgb */ color: rgb(39, 28, 140);
/* oklch */ color: oklch(33.4% 0.173 275.9);
Tailwind
colors: {
  custom: {
    50: '#725baf',
    500: '#271c8c',
    950: '#000000',
  },
}
SCSS
$custom: #271c8c;
$custom-light: #725baf;
$custom-dark: #000000;
JSON
{
  "hex": "#271c8c",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 245.893,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33396,
    "c": 0.17275,
    "h": 275.9
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#271C8C
secondary
#B1BC48
accent
#EA3ED9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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