#271B85#271B85

#271B85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.165 H 277.0°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#271B85
RGBrgb(39, 27, 133)
HSLhsl(247, 66%, 31%)
HSVhsv(247, 80%, 52%)
CMYKcmyk(70.7%, 79.7%, 0%, 47.8%)
CIE-LABlab(19.67, 39.17, -56.67)
CIE-LCHlch(19.67, 68.89, 304.66°)
OKLaboklab(32.48% 0.0202 -0.1638)
OKLCHoklch(32.48% 0.165 277)
XYZxyz(5.4609, 2.9082, 22.4593)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B85 #79851B
analogous
#1B4485 #271B85 #5C1B85
triadic
#271B85 #85271B #1B8527
tetradic
#271B85 #851B44 #79851B #1B855C
square
#271B85 #851B44 #79851B #1B855C
split-complementary
#271B85 #855C1B #44851B
monochromatic
#09061F #181152 #271B85 #3625B8 #5342D9

Accessibility & contrast

On white

13.28
#271B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B85
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B85#FFFFFF#000000##FFFFFF
##271B851.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271b85;
/* rgb */ color: rgb(39, 27, 133);
/* oklch */ color: oklch(32.5% 0.165 277.0);
Tailwind
colors: {
  custom: {
    50: '#705aaa',
    500: '#271b85',
    950: '#000000',
  },
}
SCSS
$custom: #271b85;
$custom-light: #705aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#271b85",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 246.792,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32475,
    "c": 0.165,
    "h": 277
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#271B85
secondary
#ABB844
accent
#E93FD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B85

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

Preview Lab → · Contrast checker → · Palette generator →

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