#271C9D#271C9D

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

Color values

HEX#271C9D
RGBrgb(39, 28, 157)
HSLhsl(245, 70%, 36%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(75.2%, 82.2%, 0%, 38.4%)
CIE-LABlab(22.64, 46.34, -66.66)
CIE-LCHlch(22.64, 81.18, 304.81°)
OKLaboklab(35.36% 0.0134 -0.1928)
OKLCHoklch(35.36% 0.193 274)
XYZxyz(7.3357, 3.6954, 32.2184)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C9D #929D1C
analogous
#1C529D #271C9D #681C9D
triadic
#271C9D #9D271C #1C9D27
tetradic
#271C9D #9D1C52 #929D1C #1C9D68
square
#271C9D #9D1C52 #929D1C #1C9D68
split-complementary
#271C9D #9D681C #529D1C
monochromatic
#0D0935 #1A1369 #271C9D #3425D1 #5F53E0

Accessibility & contrast

On white

12.07
#271C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C9D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C9D#FFFFFF#000000##FFFFFF
##271C9D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271c9d;
/* rgb */ color: rgb(39, 28, 157);
/* oklch */ color: oklch(35.4% 0.193 274.0);
Tailwind
colors: {
  custom: {
    50: '#765cbb',
    500: '#271c9d',
    950: '#000000',
  },
}
SCSS
$custom: #271c9d;
$custom-light: #765cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#271c9d",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 245.116,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35357,
    "c": 0.19325,
    "h": 274
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#271C9D
secondary
#BAC351
accent
#ED3BDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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