#271E80#271E80

#271E80 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.156 H 277.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#271E80
RGBrgb(39, 30, 128)
HSLhsl(246, 62%, 31%)
HSVhsv(246, 77%, 50%)
CMYKcmyk(69.5%, 76.6%, 0%, 49.8%)
CIE-LABlab(19.71, 35.83, -53.44)
CIE-LCHlch(19.71, 64.34, 303.84°)
OKLaboklab(32.34% 0.0197 -0.1544)
OKLCHoklch(32.34% 0.156 277.3)
XYZxyz(5.1960, 2.9179, 20.7073)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E80 #77801E
analogous
#1E4680 #271E80 #581E80
triadic
#271E80 #80271E #1E8027
tetradic
#271E80 #801E46 #77801E #1E8058
square
#271E80 #801E46 #77801E #1E8058
split-complementary
#271E80 #80581E #46801E
monochromatic
#09071D #18124E #271E80 #362AB2 #5245D3

Accessibility & contrast

On white

13.26
#271E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E80
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E80#FFFFFF#000000##FFFFFF
##271E801.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271e80;
/* rgb */ color: rgb(39, 30, 128);
/* oklch */ color: oklch(32.3% 0.156 277.3);
Tailwind
colors: {
  custom: {
    50: '#6f5ca6',
    500: '#271e80',
    950: '#000000',
  },
}
SCSS
$custom: #271e80;
$custom-light: #6f5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#271e80",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 245.51,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32339,
    "c": 0.15564,
    "h": 277.3
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#271E80
secondary
#A9B347
accent
#E543D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E80

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

Preview Lab → · Contrast checker → · Palette generator →

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