#271D85#271D85

#271D85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.163 H 276.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#271D85
RGBrgb(39, 29, 133)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 52%)
CMYKcmyk(70.7%, 78.2%, 0%, 47.8%)
CIE-LABlab(20.06, 38.08, -56.03)
CIE-LCHlch(20.06, 67.75, 304.20°)
OKLaboklab(32.74% 0.0191 -0.1619)
OKLCHoklch(32.74% 0.163 276.7)
XYZxyz(5.5083, 3.0030, 22.4751)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D85 #7B851D
analogous
#1D4785 #271D85 #5B1D85
triadic
#271D85 #85271D #1D8527
tetradic
#271D85 #851D47 #7B851D #1D855B
square
#271D85 #851D47 #7B851D #1D855B
split-complementary
#271D85 #855B1D #47851D
monochromatic
#0A0721 #181253 #271D85 #3628B7 #5446D7

Accessibility & contrast

On white

13.12
#271D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#271D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D85
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D85#FFFFFF#000000##FFFFFF
##271D851.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271d85;
/* rgb */ color: rgb(39, 29, 133);
/* oklch */ color: oklch(32.7% 0.163 276.7);
Tailwind
colors: {
  custom: {
    50: '#705baa',
    500: '#271d85',
    950: '#000000',
  },
}
SCSS
$custom: #271d85;
$custom-light: #705baa;
$custom-dark: #000000;
JSON
{
  "hex": "#271d85",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 245.769,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32744,
    "c": 0.16305,
    "h": 276.7
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#271D85
secondary
#ADB846
accent
#E741D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D85

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

Preview Lab → · Contrast checker → · Palette generator →

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