#271B79#271B79

#271B79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.150 H 278.9°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#271B79
RGBrgb(39, 27, 121)
HSLhsl(248, 64%, 29%)
HSVhsv(248, 78%, 47%)
CMYKcmyk(67.8%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.34, 35.21, -51.24)
CIE-LCHlch(18.34, 62.17, 304.50°)
OKLaboklab(31.15% 0.0233 -0.1479)
OKLCHoklch(31.15% 0.15 278.9)
XYZxyz(4.6787, 2.5953, 18.3398)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B79 #6D791B
analogous
#1B3E79 #271B79 #561B79
triadic
#271B79 #79271B #1B7927
tetradic
#271B79 #791B3E #6D791B #1B7956
square
#271B79 #791B3E #6D791B #1B7956
split-complementary
#271B79 #79561B #3E791B
monochromatic
#080619 #171047 #271B79 #3726AB #4F3BD3

Accessibility & contrast

On white

13.82
#271B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B79
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B79#FFFFFF#000000##FFFFFF
##271B791.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271b79;
/* rgb */ color: rgb(39, 27, 121);
/* oklch */ color: oklch(31.1% 0.150 278.9);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#271b79',
    950: '#000000',
  },
}
SCSS
$custom: #271b79;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271b79",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 247.66,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31146,
    "c": 0.14976,
    "h": 278.9
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#271B79
secondary
#A0AD43
accent
#E741D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B79

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

Preview Lab → · Contrast checker → · Palette generator →

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