#271C98#271C98

#271C98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.187 H 274.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#271C98
RGBrgb(39, 28, 152)
HSLhsl(245, 69%, 35%)
HSVhsv(245, 82%, 60%)
CMYKcmyk(74.3%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.05, 44.77, -64.57)
CIE-LCHlch(22.05, 78.57, 304.73°)
OKLaboklab(34.77% 0.0147 -0.1867)
OKLCHoklch(34.77% 0.187 274.5)
XYZxyz(6.9176, 3.5281, 30.0161)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C98 #8D981C
analogous
#1C4F98 #271C98 #651C98
triadic
#271C98 #98271C #1C9827
tetradic
#271C98 #981C4F #8D981C #1C9865
square
#271C98 #981C4F #8D981C #1C9865
split-complementary
#271C98 #98651C #4F981C
monochromatic
#0C0931 #1A1264 #271C98 #3426CC #5C50DF

Accessibility & contrast

On white

12.31
#271C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#271C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C98
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C98#FFFFFF#000000##FFFFFF
##271C981.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271c98;
/* rgb */ color: rgb(39, 28, 152);
/* oklch */ color: oklch(34.8% 0.187 274.5);
Tailwind
colors: {
  custom: {
    50: '#755cb8',
    500: '#271c98',
    950: '#000000',
  },
}
SCSS
$custom: #271c98;
$custom-light: #755cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271c98",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 245.323,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34774,
    "c": 0.18731,
    "h": 274.5
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271C98

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

Preview Lab → · Contrast checker → · Palette generator →

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