#271F7F#271F7F

#271F7F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.153 H 277.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#271F7F
RGBrgb(39, 31, 127)
HSLhsl(245, 61%, 31%)
HSVhsv(245, 76%, 50%)
CMYKcmyk(69.3%, 75.6%, 0%, 50.2%)
CIE-LABlab(19.82, 34.90, -52.64)
CIE-LCHlch(19.82, 63.16, 303.55°)
OKLaboklab(32.38% 0.0193 -0.1521)
OKLCHoklch(32.38% 0.153 277.2)
XYZxyz(5.1562, 2.9432, 20.3709)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F7F #777F1F
analogous
#1F477F #271F7F #571F7F
triadic
#271F7F #7F271F #1F7F27
tetradic
#271F7F #7F1F47 #777F1F #1F7F57
square
#271F7F #7F1F47 #777F1F #1F7F57
split-complementary
#271F7F #7F571F #477F1F
monochromatic
#09071D #18134E #271F7F #362BB0 #5246D2

Accessibility & contrast

On white

13.22
#271F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F7F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F7F#FFFFFF#000000##FFFFFF
##271F7F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271f7f;
/* rgb */ color: rgb(39, 31, 127);
/* oklch */ color: oklch(32.4% 0.153 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f5ca5',
    500: '#271f7f',
    950: '#000000',
  },
}
SCSS
$custom: #271f7f;
$custom-light: #6f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#271f7f",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 245,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3238,
    "c": 0.15328,
    "h": 277.2
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#271F7F
secondary
#A9B248
accent
#E444D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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