#271F76#271F76

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

Color values

HEX#271F76
RGBrgb(39, 31, 118)
HSLhsl(246, 58%, 29%)
HSVhsv(246, 74%, 46%)
CMYKcmyk(66.9%, 73.7%, 0%, 53.7%)
CIE-LABlab(18.88, 31.81, -48.43)
CIE-LCHlch(18.88, 57.94, 303.29°)
OKLaboklab(31.43% 0.0211 -0.1398)
OKLCHoklch(31.43% 0.141 278.6)
XYZxyz(4.5957, 2.7189, 17.4187)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F76 #6E761F
analogous
#1F4376 #271F76 #531F76
triadic
#271F76 #76271F #1F7627
tetradic
#271F76 #761F43 #6E761F #1F7653
square
#271F76 #761F43 #6E761F #1F7653
split-complementary
#271F76 #76531F #43761F
monochromatic
#080618 #171246 #271F76 #372CA6 #4F42CD

Accessibility & contrast

On white

13.60
#271F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F76
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F76#FFFFFF#000000##FFFFFF
##271F761.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271f76;
/* rgb */ color: rgb(39, 31, 118);
/* oklch */ color: oklch(31.4% 0.141 278.6);
Tailwind
colors: {
  custom: {
    50: '#6c5c9e',
    500: '#271f76',
    950: '#000000',
  },
}
SCSS
$custom: #271f76;
$custom-light: #6c5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#271f76",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 245.517,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31432,
    "c": 0.14136,
    "h": 278.6
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#271F76
secondary
#A1AA47
accent
#E246D3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271F76

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

Preview Lab → · Contrast checker → · Palette generator →

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