#271B9E#271B9E

#271B9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.195 H 274.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#271B9E
RGBrgb(39, 27, 158)
HSLhsl(245, 71%, 36%)
HSVhsv(245, 83%, 62%)
CMYKcmyk(75.3%, 82.9%, 0%, 38%)
CIE-LABlab(22.59, 47.13, -67.34)
CIE-LCHlch(22.59, 82.19, 304.99°)
OKLaboklab(35.36% 0.0135 -0.1947)
OKLCHoklch(35.36% 0.195 274)
XYZxyz(7.3981, 3.6831, 32.6621)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B9E #929E1B
analogous
#1B519E #271B9E #691B9E
triadic
#271B9E #9E271B #1B9E27
tetradic
#271B9E #9E1B51 #929E1B #1B9E69
square
#271B9E #9E1B51 #929E1B #1B9E69
split-complementary
#271B9E #9E691B #519E1B
monochromatic
#0D0935 #1A126A #271B9E #3424D2 #5F52E1

Accessibility & contrast

On white

12.09
#271B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#271B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B9E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B9E#FFFFFF#000000##FFFFFF
##271B9E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271b9e;
/* rgb */ color: rgb(39, 27, 158);
/* oklch */ color: oklch(35.4% 0.195 274.0);
Tailwind
colors: {
  custom: {
    50: '#765cbc',
    500: '#271b9e',
    950: '#000000',
  },
}
SCSS
$custom: #271b9e;
$custom-light: #765cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#271b9e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 245.496,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35362,
    "c": 0.19521,
    "h": 274
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#271B9E
secondary
#BAC451
accent
#EE3ADD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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