#271E77#271E77

#271E77 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.144 H 278.7°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#271E77
RGBrgb(39, 30, 119)
HSLhsl(246, 60%, 29%)
HSVhsv(246, 75%, 47%)
CMYKcmyk(67.2%, 74.8%, 0%, 53.3%)
CIE-LABlab(18.76, 32.76, -49.27)
CIE-LCHlch(18.76, 59.17, 303.62°)
OKLaboklab(31.38% 0.0217 -0.1422)
OKLCHoklch(31.38% 0.144 278.7)
XYZxyz(4.6297, 2.6914, 17.7247)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E77 #6E771E
analogous
#1E4277 #271E77 #541E77
triadic
#271E77 #77271E #1E7727
tetradic
#271E77 #771E42 #6E771E #1E7754
square
#271E77 #771E42 #6E771E #1E7754
split-complementary
#271E77 #77541E #42771E
monochromatic
#080618 #171246 #271E77 #372AA8 #4F40CF

Accessibility & contrast

On white

13.65
#271E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E77
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E77#FFFFFF#000000##FFFFFF
##271E771.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271e77;
/* rgb */ color: rgb(39, 30, 119);
/* oklch */ color: oklch(31.4% 0.144 278.7);
Tailwind
colors: {
  custom: {
    50: '#6d5b9f',
    500: '#271e77',
    950: '#000000',
  },
}
SCSS
$custom: #271e77;
$custom-light: #6d5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#271e77",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 246.067,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31379,
    "c": 0.14385,
    "h": 278.7
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#271E77
secondary
#A1AB46
accent
#E345D3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #271E77

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

Preview Lab → · Contrast checker → · Palette generator →

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