#271C9E#271C9E

#271C9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.194 H 273.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#271C9E
RGBrgb(39, 28, 158)
HSLhsl(245, 70%, 36%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(75.3%, 82.3%, 0%, 38%)
CIE-LABlab(22.76, 46.65, -67.07)
CIE-LCHlch(22.76, 81.70, 304.82°)
OKLaboklab(35.47% 0.0131 -0.194)
OKLCHoklch(35.47% 0.194 273.9)
XYZxyz(7.4215, 3.7297, 32.6699)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C9E #939E1C
analogous
#1C529E #271C9E #681C9E
triadic
#271C9E #9E271C #1C9E27
tetradic
#271C9E #9E1C52 #939E1C #1C9E68
square
#271C9E #9E1C52 #939E1C #1C9E68
split-complementary
#271C9E #9E681C #529E1C
monochromatic
#0D0A36 #1A136A #271C9E #3425D2 #6054E1

Accessibility & contrast

On white

12.03
#271C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#271C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C9E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C9E#FFFFFF#000000##FFFFFF
##271C9E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.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: #271c9e;
/* rgb */ color: rgb(39, 28, 158);
/* oklch */ color: oklch(35.5% 0.194 273.9);
Tailwind
colors: {
  custom: {
    50: '#765cbc',
    500: '#271c9e',
    950: '#000000',
  },
}
SCSS
$custom: #271c9e;
$custom-light: #765cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#271c9e",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 245.077,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35474,
    "c": 0.19443,
    "h": 273.9
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#271C9E
secondary
#BAC452
accent
#ED3BDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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