#271B96#271B96

#271B96 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.186 H 274.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#271B96
RGBrgb(39, 27, 150)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 82%, 59%)
CMYKcmyk(74%, 82%, 0%, 41.2%)
CIE-LABlab(21.64, 44.63, -64.01)
CIE-LCHlch(21.64, 78.03, 304.89°)
OKLaboklab(34.42% 0.0156 -0.1851)
OKLCHoklch(34.42% 0.186 274.8)
XYZxyz(6.7318, 3.4165, 29.1529)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B96 #8A961B
analogous
#1B4C96 #271B96 #651B96
triadic
#271B96 #96271B #1B9627
tetradic
#271B96 #961B4C #8A961B #1B9665
square
#271B96 #961B4C #8A961B #1B9665
split-complementary
#271B96 #96651B #4C961B
monochromatic
#0C082E #1A1262 #271B96 #3424CA #5B4DDF

Accessibility & contrast

On white

12.47
#271B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#271B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B96
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B96#FFFFFF#000000##FFFFFF
##271B961.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271b96;
/* rgb */ color: rgb(39, 27, 150);
/* oklch */ color: oklch(34.4% 0.186 274.8);
Tailwind
colors: {
  custom: {
    50: '#745bb6',
    500: '#271b96',
    950: '#000000',
  },
}
SCSS
$custom: #271b96;
$custom-light: #745bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#271b96",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 245.854,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34424,
    "c": 0.18575,
    "h": 274.8
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271B96

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

Preview Lab → · Contrast checker → · Palette generator →

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