#271D8C#271D8C

#271D8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.172 H 275.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#271D8C
RGBrgb(39, 29, 140)
HSLhsl(245, 66%, 33%)
HSVhsv(245, 79%, 55%)
CMYKcmyk(72.1%, 79.3%, 0%, 45.1%)
CIE-LABlab(20.84, 40.39, -59.13)
CIE-LCHlch(20.84, 71.61, 304.33°)
OKLaboklab(33.53% 0.0174 -0.1709)
OKLCHoklch(33.53% 0.172 275.8)
XYZxyz(6.0081, 3.2029, 25.1075)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D8C #828C1D
analogous
#1D4B8C #271D8C #5E1D8C
triadic
#271D8C #8C271D #1D8C27
tetradic
#271D8C #8C1D4B #828C1D #1D8C5E
square
#271D8C #8C1D4B #828C1D #1D8C5E
split-complementary
#271D8C #8C5E1D #4B8C1D
monochromatic
#0B0827 #191259 #271D8C #3528BF #574AD9

Accessibility & contrast

On white

12.80
#271D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D8C
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D8C#FFFFFF#000000##FFFFFF
##271D8C1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d8c;
/* rgb */ color: rgb(39, 29, 140);
/* oklch */ color: oklch(33.5% 0.172 275.8);
Tailwind
colors: {
  custom: {
    50: '#725caf',
    500: '#271d8c',
    950: '#000000',
  },
}
SCSS
$custom: #271d8c;
$custom-light: #725caf;
$custom-dark: #000000;
JSON
{
  "hex": "#271d8c",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 245.405,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33526,
    "c": 0.17182,
    "h": 275.8
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#271D8C
secondary
#B1BC49
accent
#E93FD9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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