#271F86#271F86

#271F86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.162 H 276.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#271F86
RGBrgb(39, 31, 134)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 77%, 53%)
CMYKcmyk(70.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.57, 37.28, -55.82)
CIE-LCHlch(20.57, 67.13, 303.74°)
OKLaboklab(33.14% 0.0177 -0.1613)
OKLCHoklch(33.14% 0.162 276.3)
XYZxyz(5.6284, 3.1320, 22.8576)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F86 #7E861F
analogous
#1F4B86 #271F86 #5A1F86
triadic
#271F86 #86271F #1F8627
tetradic
#271F86 #861F4B #7E861F #1F865A
square
#271F86 #861F4B #7E861F #1F865A
split-complementary
#271F86 #865A1F #4B861F
monochromatic
#0A0823 #191454 #271F86 #352AB8 #554AD5

Accessibility & contrast

On white

12.91
#271F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F86
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F86#FFFFFF#000000##FFFFFF
##271F861.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271f86;
/* rgb */ color: rgb(39, 31, 134);
/* oklch */ color: oklch(33.1% 0.162 276.3);
Tailwind
colors: {
  custom: {
    50: '#705caa',
    500: '#271f86',
    950: '#000000',
  },
}
SCSS
$custom: #271f86;
$custom-light: #705caa;
$custom-dark: #000000;
JSON
{
  "hex": "#271f86",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 244.66,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33136,
    "c": 0.16231,
    "h": 276.3
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#271F86
secondary
#AFB849
accent
#E542D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271F86

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

Preview Lab → · Contrast checker → · Palette generator →

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