#271C9C#271C9C

#271C9C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.192 H 274.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#271C9C
RGBrgb(39, 28, 156)
HSLhsl(245, 70%, 36%)
HSVhsv(245, 82%, 61%)
CMYKcmyk(75%, 82.1%, 0%, 38.8%)
CIE-LABlab(22.52, 46.03, -66.24)
CIE-LCHlch(22.52, 80.66, 304.79°)
OKLaboklab(35.24% 0.0137 -0.1916)
OKLCHoklch(35.24% 0.192 274.1)
XYZxyz(7.2507, 3.6614, 31.7706)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C9C #919C1C
analogous
#1C519C #271C9C #671C9C
triadic
#271C9C #9C271C #1C9C27
tetradic
#271C9C #9C1C51 #919C1C #1C9C67
square
#271C9C #9C1C51 #919C1C #1C9C67
split-complementary
#271C9C #9C671C #519C1C
monochromatic
#0D0934 #1A1368 #271C9C #3425D0 #5F52E0

Accessibility & contrast

On white

12.12
#271C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C9C
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C9C#FFFFFF#000000##FFFFFF
##271C9C1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9F
Deuteranopia (green-blind)
#00309A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271c9c;
/* rgb */ color: rgb(39, 28, 156);
/* oklch */ color: oklch(35.2% 0.192 274.1);
Tailwind
colors: {
  custom: {
    50: '#765cbb',
    500: '#271c9c',
    950: '#000000',
  },
}
SCSS
$custom: #271c9c;
$custom-light: #765cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#271c9c",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 156
  },
  "hsl": {
    "h": 245.156,
    "s": 69.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.19208,
    "h": 274.1
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#271C9C
secondary
#B9C351
accent
#EC3BDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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