#271B91#271B91

#271B91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.180 H 275.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#271B91
RGBrgb(39, 27, 145)
HSLhsl(246, 69%, 34%)
HSVhsv(246, 81%, 57%)
CMYKcmyk(73.1%, 81.4%, 0%, 43.1%)
CIE-LABlab(21.05, 43.05, -61.89)
CIE-LCHlch(21.05, 75.39, 304.82°)
OKLaboklab(33.84% 0.017 -0.1789)
OKLCHoklch(33.84% 0.18 275.4)
XYZxyz(6.3378, 3.2589, 27.0776)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B91 #85911B
analogous
#1B4A91 #271B91 #621B91
triadic
#271B91 #91271B #1B9127
tetradic
#271B91 #911B4A #85911B #1B9162
square
#271B91 #911B4A #85911B #1B9162
split-complementary
#271B91 #91621B #4A911B
monochromatic
#0B082A #19115D #271B91 #3525C5 #5849DD

Accessibility & contrast

On white

12.71
#271B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B91
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B91#FFFFFF#000000##FFFFFF
##271B911.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002D8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271b91;
/* rgb */ color: rgb(39, 27, 145);
/* oklch */ color: oklch(33.8% 0.180 275.4);
Tailwind
colors: {
  custom: {
    50: '#735bb3',
    500: '#271b91',
    950: '#000000',
  },
}
SCSS
$custom: #271b91;
$custom-light: #735bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#271b91",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 145
  },
  "hsl": {
    "h": 246.102,
    "s": 68.605,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.17973,
    "h": 275.4
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#271B91
secondary
#B3BF49
accent
#EB3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271B91

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

Preview Lab → · Contrast checker → · Palette generator →

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