#271C9B#271C9B

#271C9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.191 H 274.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#271C9B
RGBrgb(39, 28, 155)
HSLhsl(245, 69%, 36%)
HSVhsv(245, 82%, 61%)
CMYKcmyk(74.8%, 81.9%, 0%, 39.2%)
CIE-LABlab(22.40, 45.71, -65.82)
CIE-LCHlch(22.40, 80.14, 304.78°)
OKLaboklab(35.12% 0.0139 -0.1904)
OKLCHoklch(35.12% 0.191 274.2)
XYZxyz(7.1664, 3.6277, 31.3265)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C9B #909B1C
analogous
#1C509B #271C9B #661C9B
triadic
#271C9B #9B271C #1C9B27
tetradic
#271C9B #9B1C50 #909B1C #1C9B66
square
#271C9B #9B1C50 #909B1C #1C9B66
split-complementary
#271C9B #9B661C #509B1C
monochromatic
#0D0933 #1A1367 #271C9B #3425CF #5E52E0

Accessibility & contrast

On white

12.17
#271C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#271C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C9B
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C9B#FFFFFF#000000##FFFFFF
##271C9B1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271c9b;
/* rgb */ color: rgb(39, 28, 155);
/* oklch */ color: oklch(35.1% 0.191 274.2);
Tailwind
colors: {
  custom: {
    50: '#765cba',
    500: '#271c9b',
    950: '#000000',
  },
}
SCSS
$custom: #271c9b;
$custom-light: #765cba;
$custom-dark: #000000;
JSON
{
  "hex": "#271c9b",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 245.197,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35123,
    "c": 0.19089,
    "h": 274.2
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#271C9B
secondary
#B9C350
accent
#EC3CDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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