#271F77#271F77

#271F77 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.143 H 278.4°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#271F77
RGBrgb(39, 31, 119)
HSLhsl(245, 59%, 29%)
HSVhsv(245, 74%, 47%)
CMYKcmyk(67.2%, 73.9%, 0%, 53.3%)
CIE-LABlab(18.98, 32.15, -48.91)
CIE-LCHlch(18.98, 58.53, 303.32°)
OKLaboklab(31.54% 0.0209 -0.1411)
OKLCHoklch(31.54% 0.143 278.4)
XYZxyz(4.6554, 2.7428, 17.7333)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F77 #6F771F
analogous
#1F4377 #271F77 #531F77
triadic
#271F77 #77271F #1F7727
tetradic
#271F77 #771F43 #6F771F #1F7753
square
#271F77 #771F43 #6F771F #1F7753
split-complementary
#271F77 #77531F #43771F
monochromatic
#080618 #171246 #271F77 #372CA8 #4F43CE

Accessibility & contrast

On white

13.56
#271F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F77
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F77#FFFFFF#000000##FFFFFF
##271F771.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271f77;
/* rgb */ color: rgb(39, 31, 119);
/* oklch */ color: oklch(31.5% 0.143 278.4);
Tailwind
colors: {
  custom: {
    50: '#6d5c9f',
    500: '#271f77',
    950: '#000000',
  },
}
SCSS
$custom: #271f77;
$custom-light: #6d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#271f77",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 245.455,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31536,
    "c": 0.14269,
    "h": 278.4
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#271F77
secondary
#A2AB47
accent
#E246D4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #271F77

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

Preview Lab → · Contrast checker → · Palette generator →

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