#271C7C#271C7C

#271C7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.153 H 278.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#271C7C
RGBrgb(39, 28, 124)
HSLhsl(247, 63%, 30%)
HSVhsv(247, 77%, 49%)
CMYKcmyk(68.5%, 77.4%, 0%, 51.4%)
CIE-LABlab(18.87, 35.64, -52.29)
CIE-LCHlch(18.87, 63.28, 304.28°)
OKLaboklab(31.62% 0.0219 -0.151)
OKLCHoklch(31.62% 0.153 278.3)
XYZxyz(4.8889, 2.7167, 19.3316)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C7C #717C1C
analogous
#1C417C #271C7C #571C7C
triadic
#271C7C #7C271C #1C7C27
tetradic
#271C7C #7C1C41 #717C1C #1C7C57
square
#271C7C #7C1C41 #717C1C #1C7C57
split-complementary
#271C7C #7C571C #417C1C
monochromatic
#080619 #17114A #271C7C #3727AE #503FD4

Accessibility & contrast

On white

13.61
#271C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C7C
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C7C#FFFFFF#000000##FFFFFF
##271C7C1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271c7c;
/* rgb */ color: rgb(39, 28, 124);
/* oklch */ color: oklch(31.6% 0.153 278.3);
Tailwind
colors: {
  custom: {
    50: '#6e5aa3',
    500: '#271c7c',
    950: '#000000',
  },
}
SCSS
$custom: #271c7c;
$custom-light: #6e5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#271c7c",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 246.875,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31615,
    "c": 0.15258,
    "h": 278.3
  },
  "luminance": 0.02717
}

Semantic roles & 50–950 ramp

primary
#271C7C
secondary
#A3B044
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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