#271B7F#271B7F

#271B7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.157 H 277.9°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#271B7F
RGBrgb(39, 27, 127)
HSLhsl(247, 65%, 30%)
HSVhsv(247, 79%, 50%)
CMYKcmyk(69.3%, 78.7%, 0%, 50.2%)
CIE-LABlab(19.00, 37.20, -53.98)
CIE-LCHlch(19.00, 65.56, 304.58°)
OKLaboklab(31.81% 0.0218 -0.1559)
OKLCHoklch(31.81% 0.157 277.9)
XYZxyz(5.0582, 2.7471, 20.3382)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B7F #737F1B
analogous
#1B417F #271B7F #591B7F
triadic
#271B7F #7F271B #1B7F27
tetradic
#271B7F #7F1B41 #737F1B #1B7F59
square
#271B7F #7F1B41 #737F1B #1B7F59
split-complementary
#271B7F #7F591B #417F1B
monochromatic
#08061A #18104D #271B7F #3626B1 #513ED6

Accessibility & contrast

On white

13.55
#271B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B7F
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B7F#FFFFFF#000000##FFFFFF
##271B7F1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271b7f;
/* rgb */ color: rgb(39, 27, 127);
/* oklch */ color: oklch(31.8% 0.157 277.9);
Tailwind
colors: {
  custom: {
    50: '#6f5aa5',
    500: '#271b7f',
    950: '#000000',
  },
}
SCSS
$custom: #271b7f;
$custom-light: #6f5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#271b7f",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 247.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.15745,
    "h": 277.9
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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