#271CA8#271CA8

#271CA8 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.7% C 0.206 H 272.9°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#271CA8
RGBrgb(39, 28, 168)
HSLhsl(245, 71%, 38%)
HSVhsv(245, 83%, 66%)
CMYKcmyk(76.8%, 83.3%, 0%, 34.1%)
CIE-LABlab(23.96, 49.74, -71.15)
CIE-LCHlch(23.96, 86.82, 304.95°)
OKLaboklab(36.65% 0.0105 -0.2058)
OKLCHoklch(36.65% 0.206 272.9)
XYZxyz(8.3175, 4.0881, 37.3889)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271CA8 #9DA81C
analogous
#1C57A8 #271CA8 #6D1CA8
triadic
#271CA8 #A8271C #1CA827
tetradic
#271CA8 #A81C57 #9DA81C #1CA86D
square
#271CA8 #A81C57 #9DA81C #1CA86D
split-complementary
#271CA8 #A86D1C #57A81C
monochromatic
#0F0B3F #1B1374 #271CA8 #3426DB #665BE4

Accessibility & contrast

On white

11.55
#271CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#271CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271CA8
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271CA8#FFFFFF#000000##FFFFFF
##271CA81.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAC
Deuteranopia (green-blind)
#0032A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #271ca8;
/* rgb */ color: rgb(39, 28, 168);
/* oklch */ color: oklch(36.7% 0.206 272.9);
Tailwind
colors: {
  custom: {
    50: '#795dc3',
    500: '#271ca8',
    950: '#000000',
  },
}
SCSS
$custom: #271ca8;
$custom-light: #795dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#271ca8",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 244.714,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36654,
    "c": 0.2061,
    "h": 272.9
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#271CA8
secondary
#BFC758
accent
#EE3AE0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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