#271D8F#271D8F

#271D8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.176 H 275.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#271D8F
RGBrgb(39, 29, 143)
HSLhsl(245, 66%, 34%)
HSVhsv(245, 80%, 56%)
CMYKcmyk(72.7%, 79.7%, 0%, 43.9%)
CIE-LABlab(21.18, 41.37, -60.43)
CIE-LCHlch(21.18, 73.24, 304.39°)
OKLaboklab(33.87% 0.0166 -0.1747)
OKLCHoklch(33.87% 0.176 275.4)
XYZxyz(6.2324, 3.2926, 26.2884)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D8F #858F1D
analogous
#1D4C8F #271D8F #601D8F
triadic
#271D8F #8F271D #1D8F27
tetradic
#271D8F #8F1D4C #858F1D #1D8F60
square
#271D8F #8F1D4C #858F1D #1D8F60
split-complementary
#271D8F #8F601D #4C8F1D
monochromatic
#0B0829 #19135C #271D8F #3527C2 #584CDB

Accessibility & contrast

On white

12.66
#271D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D8F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D8F#FFFFFF#000000##FFFFFF
##271D8F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271d8f;
/* rgb */ color: rgb(39, 29, 143);
/* oklch */ color: oklch(33.9% 0.176 275.4);
Tailwind
colors: {
  custom: {
    50: '#735cb1',
    500: '#271d8f',
    950: '#000000',
  },
}
SCSS
$custom: #271d8f;
$custom-light: #735cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#271d8f",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 245.263,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33865,
    "c": 0.17553,
    "h": 275.4
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#271D8F
secondary
#B3BD4B
accent
#E93FDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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