#271B97#271B97

#271B97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.187 H 274.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#271B97
RGBrgb(39, 27, 151)
HSLhsl(246, 70%, 35%)
HSVhsv(246, 82%, 59%)
CMYKcmyk(74.2%, 82.1%, 0%, 40.8%)
CIE-LABlab(21.76, 44.94, -64.43)
CIE-LCHlch(21.76, 78.56, 304.90°)
OKLaboklab(34.54% 0.0154 -0.1863)
OKLCHoklch(34.54% 0.187 274.7)
XYZxyz(6.8127, 3.4489, 29.5788)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B97 #8B971B
analogous
#1B4D97 #271B97 #651B97
triadic
#271B97 #97271B #1B9727
tetradic
#271B97 #971B4D #8B971B #1B9765
square
#271B97 #971B4D #8B971B #1B9765
split-complementary
#271B97 #97651B #4D971B
monochromatic
#0C082F #1A1263 #271B97 #3424CB #5B4DDF

Accessibility & contrast

On white

12.43
#271B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B97
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B97#FFFFFF#000000##FFFFFF
##271B971.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271b97;
/* rgb */ color: rgb(39, 27, 151);
/* oklch */ color: oklch(34.5% 0.187 274.7);
Tailwind
colors: {
  custom: {
    50: '#755bb7',
    500: '#271b97',
    950: '#000000',
  },
}
SCSS
$custom: #271b97;
$custom-light: #755bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#271b97",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 245.806,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.18694,
    "h": 274.7
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#271B97
secondary
#B6C14C
accent
#EC3BDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271B97

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

Preview Lab → · Contrast checker → · Palette generator →

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