#271B7A#271B7A

#271B7A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.151 H 278.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#271B7A
RGBrgb(39, 27, 122)
HSLhsl(248, 64%, 29%)
HSVhsv(248, 78%, 48%)
CMYKcmyk(68%, 77.9%, 0%, 52.2%)
CIE-LABlab(18.45, 35.54, -51.70)
CIE-LCHlch(18.45, 62.74, 304.51°)
OKLaboklab(31.26% 0.023 -0.1493)
OKLCHoklch(31.26% 0.151 278.8)
XYZxyz(4.7404, 2.6200, 18.6645)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B7A #6E7A1B
analogous
#1B3F7A #271B7A #571B7A
triadic
#271B7A #7A271B #1B7A27
tetradic
#271B7A #7A1B3F #6E7A1B #1B7A57
square
#271B7A #7A1B3F #6E7A1B #1B7A57
split-complementary
#271B7A #7A571B #3F7A1B
monochromatic
#080619 #171048 #271B7A #3726AC #4F3CD4

Accessibility & contrast

On white

13.78
#271B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B7A
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B7A#FFFFFF#000000##FFFFFF
##271B7A1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271b7a;
/* rgb */ color: rgb(39, 27, 122);
/* oklch */ color: oklch(31.3% 0.151 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#271b7a',
    950: '#000000',
  },
}
SCSS
$custom: #271b7a;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271b7a",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 247.579,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31255,
    "c": 0.15106,
    "h": 278.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#271B7A
secondary
#A1AE43
accent
#E741D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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