#271B80#271B80

#271B80 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.159 H 277.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#271B80
RGBrgb(39, 27, 128)
HSLhsl(247, 65%, 30%)
HSVhsv(247, 79%, 50%)
CMYKcmyk(69.5%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.11, 37.53, -54.43)
CIE-LCHlch(19.11, 66.12, 304.59°)
OKLaboklab(31.92% 0.0215 -0.1572)
OKLCHoklch(31.92% 0.159 277.8)
XYZxyz(5.1237, 2.7733, 20.6832)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B80 #74801B
analogous
#1B4180 #271B80 #591B80
triadic
#271B80 #80271B #1B8027
tetradic
#271B80 #801B41 #74801B #1B8059
square
#271B80 #801B41 #74801B #1B8059
split-complementary
#271B80 #80591B #41801B
monochromatic
#08061B #18104D #271B80 #3626B3 #513FD6

Accessibility & contrast

On white

13.51
#271B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B80
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B80#FFFFFF#000000##FFFFFF
##271B801.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271b80;
/* rgb */ color: rgb(39, 27, 128);
/* oklch */ color: oklch(31.9% 0.159 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f5aa6',
    500: '#271b80',
    950: '#000000',
  },
}
SCSS
$custom: #271b80;
$custom-light: #6f5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#271b80",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 247.129,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31916,
    "c": 0.15871,
    "h": 277.8
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#271B80
secondary
#A6B443
accent
#E840D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271B80

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

Preview Lab → · Contrast checker → · Palette generator →

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