#271FAA#271FAA

#271FAA is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.206 H 272.5°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#271FAA
RGBrgb(39, 31, 170)
HSLhsl(243, 69%, 39%)
HSVhsv(243, 82%, 67%)
CMYKcmyk(77.1%, 81.8%, 0%, 33.3%)
CIE-LABlab(24.68, 48.95, -71.17)
CIE-LCHlch(24.68, 86.38, 304.52°)
OKLaboklab(37.22% 0.0091 -0.2059)
OKLCHoklch(37.22% 0.206 272.5)
XYZxyz(8.5800, 4.3127, 38.4027)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271FAA #A2AA1F
analogous
#1F5DAA #271FAA #6D1FAA
triadic
#271FAA #AA271F #1FAA27
tetradic
#271FAA #AA1F5D #A2AA1F #1FAA6D
square
#271FAA #AA1F5D #A2AA1F #1FAA6D
split-complementary
#271FAA #AA6D1F #5DAA1F
monochromatic
#0F0C42 #1B1676 #271FAA #372DD9 #6961E2

Accessibility & contrast

On white

11.27
#271FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#271FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271FAA
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271FAA#FFFFFF#000000##FFFFFF
##271FAA1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AE
Deuteranopia (green-blind)
#0034A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #271faa;
/* rgb */ color: rgb(39, 31, 170);
/* oklch */ color: oklch(37.2% 0.206 272.5);
Tailwind
colors: {
  custom: {
    50: '#795fc5',
    500: '#271faa',
    950: '#000000',
  },
}
SCSS
$custom: #271faa;
$custom-light: #795fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#271faa",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 170
  },
  "hsl": {
    "h": 243.453,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37221,
    "c": 0.20612,
    "h": 272.5
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#271FAA
secondary
#C1C75E
accent
#EC3CE2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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