#271F91#271F91

#271F91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.176 H 275.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#271F91
RGBrgb(39, 31, 145)
HSLhsl(244, 65%, 35%)
HSVhsv(244, 79%, 57%)
CMYKcmyk(73.1%, 78.6%, 0%, 43.1%)
CIE-LABlab(21.78, 40.94, -60.68)
CIE-LCHlch(21.78, 73.20, 304.01°)
OKLaboklab(34.35% 0.0152 -0.1755)
OKLCHoklch(34.35% 0.176 275)
XYZxyz(6.4358, 3.4550, 27.1103)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F91 #89911F
analogous
#1F5091 #271F91 #601F91
triadic
#271F91 #91271F #1F9127
tetradic
#271F91 #911F50 #89911F #1F9160
square
#271F91 #911F50 #89911F #1F9160
split-complementary
#271F91 #91601F #50911F
monochromatic
#0C092C #19145F #271F91 #352AC3 #5A51DA

Accessibility & contrast

On white

12.42
#271F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#271F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F91
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F91#FFFFFF#000000##FFFFFF
##271F911.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271f91;
/* rgb */ color: rgb(39, 31, 145);
/* oklch */ color: oklch(34.4% 0.176 275.0);
Tailwind
colors: {
  custom: {
    50: '#735db2',
    500: '#271f91',
    950: '#000000',
  },
}
SCSS
$custom: #271f91;
$custom-light: #735db2;
$custom-dark: #000000;
JSON
{
  "hex": "#271f91",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 244.211,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34353,
    "c": 0.17614,
    "h": 275
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#271F91
secondary
#B5BD4F
accent
#E840DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271F91

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

Preview Lab → · Contrast checker → · Palette generator →

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