#271F79#271F79

#271F79 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.145 H 278.1°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#271F79
RGBrgb(39, 31, 121)
HSLhsl(245, 59%, 30%)
HSVhsv(245, 74%, 47%)
CMYKcmyk(67.8%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.19, 32.84, -49.85)
CIE-LCHlch(19.19, 59.70, 303.38°)
OKLaboklab(31.75% 0.0205 -0.1439)
OKLCHoklch(31.75% 0.145 278.1)
XYZxyz(4.7768, 2.7914, 18.3725)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F79 #71791F
analogous
#1F4479 #271F79 #541F79
triadic
#271F79 #79271F #1F7927
tetradic
#271F79 #791F44 #71791F #1F7954
square
#271F79 #791F44 #71791F #1F7954
split-complementary
#271F79 #79541F #44791F
monochromatic
#080618 #171348 #271F79 #372BAA #5043CF

Accessibility & contrast

On white

13.48
#271F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F79
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F79#FFFFFF#000000##FFFFFF
##271F791.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271f79;
/* rgb */ color: rgb(39, 31, 121);
/* oklch */ color: oklch(31.7% 0.145 278.1);
Tailwind
colors: {
  custom: {
    50: '#6d5ca1',
    500: '#271f79',
    950: '#000000',
  },
}
SCSS
$custom: #271f79;
$custom-light: #6d5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#271f79",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 245.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31745,
    "c": 0.14537,
    "h": 278.1
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#271F79
secondary
#A3AC47
accent
#E245D4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F79

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

Preview Lab → · Contrast checker → · Palette generator →

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