#271F84#271F84

#271F84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.160 H 276.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#271F84
RGBrgb(39, 31, 132)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 77%, 52%)
CMYKcmyk(70.5%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.35, 36.60, -54.92)
CIE-LCHlch(20.35, 66.00, 303.68°)
OKLaboklab(32.92% 0.0182 -0.1587)
OKLCHoklch(32.92% 0.16 276.5)
XYZxyz(5.4902, 3.0768, 22.1299)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F84 #7C841F
analogous
#1F4A84 #271F84 #591F84
triadic
#271F84 #84271F #1F8427
tetradic
#271F84 #841F4A #7C841F #1F8459
square
#271F84 #841F4A #7C841F #1F8459
split-complementary
#271F84 #84591F #4A841F
monochromatic
#0A0821 #181352 #271F84 #362BB6 #5449D4

Accessibility & contrast

On white

13.00
#271F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F84
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F84#FFFFFF#000000##FFFFFF
##271F841.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271f84;
/* rgb */ color: rgb(39, 31, 132);
/* oklch */ color: oklch(32.9% 0.160 276.5);
Tailwind
colors: {
  custom: {
    50: '#705ca9',
    500: '#271f84',
    950: '#000000',
  },
}
SCSS
$custom: #271f84;
$custom-light: #705ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#271f84",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 244.752,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32918,
    "c": 0.15975,
    "h": 276.5
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#271F84
secondary
#AEB748
accent
#E543D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271F84

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

Preview Lab → · Contrast checker → · Palette generator →

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