#271C82#271C82

#271C82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.160 H 277.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#271C82
RGBrgb(39, 28, 130)
HSLhsl(246, 65%, 31%)
HSVhsv(246, 78%, 51%)
CMYKcmyk(70%, 78.5%, 0%, 49%)
CIE-LABlab(19.53, 37.64, -55.01)
CIE-LCHlch(19.53, 66.66, 304.38°)
OKLaboklab(32.27% 0.0204 -0.1589)
OKLCHoklch(32.27% 0.16 277.3)
XYZxyz(5.2799, 2.8731, 21.3911)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C82 #77821C
analogous
#1C4482 #271C82 #5A1C82
triadic
#271C82 #82271C #1C8227
tetradic
#271C82 #821C44 #77821C #1C825A
square
#271C82 #821C44 #77821C #1C825A
split-complementary
#271C82 #825A1C #44821C
monochromatic
#09061D #181150 #271C82 #3627B4 #5242D6

Accessibility & contrast

On white

13.34
#271C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C82
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C82#FFFFFF#000000##FFFFFF
##271C821.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271c82;
/* rgb */ color: rgb(39, 28, 130);
/* oklch */ color: oklch(32.3% 0.160 277.3);
Tailwind
colors: {
  custom: {
    50: '#705aa7',
    500: '#271c82',
    950: '#000000',
  },
}
SCSS
$custom: #271c82;
$custom-light: #705aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#271c82",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 246.471,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32274,
    "c": 0.16026,
    "h": 277.3
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#271C82
secondary
#A9B544
accent
#E840D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271C82

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

Preview Lab → · Contrast checker → · Palette generator →

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