#271F85#271F85

#271F85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.161 H 276.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#271F85
RGBrgb(39, 31, 133)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 77%, 52%)
CMYKcmyk(70.7%, 76.7%, 0%, 47.8%)
CIE-LABlab(20.46, 36.94, -55.37)
CIE-LCHlch(20.46, 66.56, 303.71°)
OKLaboklab(33.03% 0.018 -0.16)
OKLCHoklch(33.03% 0.161 276.4)
XYZxyz(5.5589, 3.1043, 22.4920)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F85 #7D851F
analogous
#1F4A85 #271F85 #5A1F85
triadic
#271F85 #85271F #1F8527
tetradic
#271F85 #851F4A #7D851F #1F855A
square
#271F85 #851F4A #7D851F #1F855A
split-complementary
#271F85 #855A1F #4A851F
monochromatic
#0A0822 #181353 #271F85 #362BB7 #554AD5

Accessibility & contrast

On white

12.95
#271F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F85
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F85#FFFFFF#000000##FFFFFF
##271F851.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271f85;
/* rgb */ color: rgb(39, 31, 133);
/* oklch */ color: oklch(33.0% 0.161 276.4);
Tailwind
colors: {
  custom: {
    50: '#705caa',
    500: '#271f85',
    950: '#000000',
  },
}
SCSS
$custom: #271f85;
$custom-light: #705caa;
$custom-dark: #000000;
JSON
{
  "hex": "#271f85",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 244.706,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33027,
    "c": 0.16104,
    "h": 276.4
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#271F85
secondary
#AFB749
accent
#E543D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271F85

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

Preview Lab → · Contrast checker → · Palette generator →

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