#271B95#271B95

#271B95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.185 H 274.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#271B95
RGBrgb(39, 27, 149)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 82%, 58%)
CMYKcmyk(73.8%, 81.9%, 0%, 41.6%)
CIE-LABlab(21.52, 44.31, -63.59)
CIE-LCHlch(21.52, 77.50, 304.87°)
OKLaboklab(34.31% 0.0159 -0.1839)
OKLCHoklch(34.31% 0.185 274.9)
XYZxyz(6.6517, 3.3845, 28.7307)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B95 #89951B
analogous
#1B4C95 #271B95 #641B95
triadic
#271B95 #95271B #1B9527
tetradic
#271B95 #951B4C #89951B #1B9564
square
#271B95 #951B4C #89951B #1B9564
split-complementary
#271B95 #95641B #4C951B
monochromatic
#0C082D #191261 #271B95 #3524C9 #5A4CDF

Accessibility & contrast

On white

12.52
#271B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B95
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B95#FFFFFF#000000##FFFFFF
##271B951.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271b95;
/* rgb */ color: rgb(39, 27, 149);
/* oklch */ color: oklch(34.3% 0.185 274.9);
Tailwind
colors: {
  custom: {
    50: '#745bb5',
    500: '#271b95',
    950: '#000000',
  },
}
SCSS
$custom: #271b95;
$custom-light: #745bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#271b95",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 245.902,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.18456,
    "h": 274.9
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#271B95
secondary
#B5C14B
accent
#EC3CDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271B95

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

Preview Lab → · Contrast checker → · Palette generator →

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