#271B77#271B77

#271B77 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.147 H 279.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#271B77
RGBrgb(39, 27, 119)
HSLhsl(248, 63%, 29%)
HSVhsv(248, 77%, 47%)
CMYKcmyk(67.2%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.13, 34.54, -50.31)
CIE-LCHlch(18.13, 61.03, 304.47°)
OKLaboklab(30.93% 0.0238 -0.1452)
OKLCHoklch(30.93% 0.147 279.3)
XYZxyz(4.5573, 2.5467, 17.7006)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B77 #6B771B
analogous
#1B3D77 #271B77 #551B77
triadic
#271B77 #77271B #1B7727
tetradic
#271B77 #771B3D #6B771B #1B7755
square
#271B77 #771B3D #6B771B #1B7755
split-complementary
#271B77 #77551B #3D771B
monochromatic
#080619 #171045 #271B77 #3726A9 #4E3AD2

Accessibility & contrast

On white

13.91
#271B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B77
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B77#FFFFFF#000000##FFFFFF
##271B771.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271b77;
/* rgb */ color: rgb(39, 27, 119);
/* oklch */ color: oklch(30.9% 0.147 279.3);
Tailwind
colors: {
  custom: {
    50: '#6d599f',
    500: '#271b77',
    950: '#000000',
  },
}
SCSS
$custom: #271b77;
$custom-light: #6d599f;
$custom-dark: #000000;
JSON
{
  "hex": "#271b77",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 247.826,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30929,
    "c": 0.14717,
    "h": 279.3
  },
  "luminance": 0.02547
}

Semantic roles & 50–950 ramp

primary
#271B77
secondary
#9EAB42
accent
#E642D1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #271B77

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

Preview Lab → · Contrast checker → · Palette generator →

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