#271C97#271C97

#271C97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.186 H 274.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#271C97
RGBrgb(39, 28, 151)
HSLhsl(245, 69%, 35%)
HSVhsv(245, 81%, 59%)
CMYKcmyk(74.2%, 81.5%, 0%, 40.8%)
CIE-LABlab(21.93, 44.45, -64.15)
CIE-LCHlch(21.93, 78.04, 304.72°)
OKLaboklab(34.66% 0.015 -0.1855)
OKLCHoklch(34.66% 0.186 274.6)
XYZxyz(6.8360, 3.4955, 29.5866)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C97 #8C971C
analogous
#1C4E97 #271C97 #651C97
triadic
#271C97 #97271C #1C9727
tetradic
#271C97 #971C4E #8C971C #1C9765
square
#271C97 #971C4E #8C971C #1C9765
split-complementary
#271C97 #97651C #4E971C
monochromatic
#0C0930 #1A1263 #271C97 #3426CB #5C4FDE

Accessibility & contrast

On white

12.36
#271C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#271C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C97
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C97#FFFFFF#000000##FFFFFF
##271C971.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271c97;
/* rgb */ color: rgb(39, 28, 151);
/* oklch */ color: oklch(34.7% 0.186 274.6);
Tailwind
colors: {
  custom: {
    50: '#755cb7',
    500: '#271c97',
    950: '#000000',
  },
}
SCSS
$custom: #271c97;
$custom-light: #755cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#271c97",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 245.366,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34658,
    "c": 0.18611,
    "h": 274.6
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#271C97
secondary
#B7C14E
accent
#EC3CDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271C97

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

Preview Lab → · Contrast checker → · Palette generator →

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