#271D6F#271D6F

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

Color values

HEX#271D6F
RGBrgb(39, 29, 111)
HSLhsl(247, 59%, 27%)
HSVhsv(247, 74%, 44%)
CMYKcmyk(64.9%, 73.9%, 0%, 56.5%)
CIE-LABlab(17.73, 30.62, -45.81)
CIE-LCHlch(17.73, 55.10, 303.76°)
OKLaboklab(30.39% 0.024 -0.1321)
OKLCHoklch(30.39% 0.134 280.3)
XYZxyz(4.1444, 2.4575, 15.2918)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D6F #656F1D
analogous
#1D3C6F #271D6F #501D6F
triadic
#271D6F #6F271D #1D6F27
tetradic
#271D6F #6F1D3C #656F1D #1D6F50
square
#271D6F #6F1D3C #656F1D #1D6F50
split-complementary
#271D6F #6F501D #3C6F1D
monochromatic
#090618 #16103E #271D6F #382AA0 #4C3BCC

Accessibility & contrast

On white

14.08
#271D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D6F
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D6F#FFFFFF#000000##FFFFFF
##271D6F1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271d6f;
/* rgb */ color: rgb(39, 29, 111);
/* oklch */ color: oklch(30.4% 0.134 280.3);
Tailwind
colors: {
  custom: {
    50: '#6b5a99',
    500: '#271d6f',
    950: '#000000',
  },
}
SCSS
$custom: #271d6f;
$custom-light: #6b5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#271d6f",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 247.317,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30391,
    "c": 0.13427,
    "h": 280.3
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#271D6F
secondary
#98A344
accent
#E246CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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