#271C9F#271C9F

#271C9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.196 H 273.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#271C9F
RGBrgb(39, 28, 159)
HSLhsl(245, 70%, 37%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(75.5%, 82.4%, 0%, 37.6%)
CIE-LABlab(22.88, 46.96, -67.48)
CIE-LCHlch(22.88, 82.22, 304.83°)
OKLaboklab(35.59% 0.0129 -0.1952)
OKLCHoklch(35.59% 0.196 273.8)
XYZxyz(7.5079, 3.7643, 33.1251)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C9F #949F1C
analogous
#1C539F #271C9F #691C9F
triadic
#271C9F #9F271C #1C9F27
tetradic
#271C9F #9F1C53 #949F1C #1C9F69
square
#271C9F #9F1C53 #949F1C #1C9F69
split-complementary
#271C9F #9F691C #539F1C
monochromatic
#0D0A37 #1A136B #271C9F #3425D3 #6054E1

Accessibility & contrast

On white

11.98
#271C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C9F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C9F#FFFFFF#000000##FFFFFF
##271C9F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271c9f;
/* rgb */ color: rgb(39, 28, 159);
/* oklch */ color: oklch(35.6% 0.196 273.8);
Tailwind
colors: {
  custom: {
    50: '#775cbd',
    500: '#271c9f',
    950: '#000000',
  },
}
SCSS
$custom: #271c9f;
$custom-light: #775cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#271c9f",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 245.038,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35591,
    "c": 0.19561,
    "h": 273.8
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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