#271C6E#271C6E

#271C6E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.134 H 280.8°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#271C6E
RGBrgb(39, 28, 110)
HSLhsl(248, 59%, 27%)
HSVhsv(248, 75%, 43%)
CMYKcmyk(64.5%, 74.5%, 0%, 56.9%)
CIE-LABlab(17.40, 30.89, -45.70)
CIE-LCHlch(17.40, 55.16, 304.06°)
OKLaboklab(30.13% 0.0251 -0.1317)
OKLCHoklch(30.13% 0.134 280.8)
XYZxyz(4.0655, 2.3873, 14.9954)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C6E #636E1C
analogous
#1C3A6E #271C6E #501C6E
triadic
#271C6E #6E271C #1C6E27
tetradic
#271C6E #6E1C3A #636E1C #1C6E50
square
#271C6E #6E1C3A #636E1C #1C6E50
split-complementary
#271C6E #6E501C #3A6E1C
monochromatic
#090618 #16103D #271C6E #38289F #4C38CC

Accessibility & contrast

On white

14.21
#271C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C6E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C6E#FFFFFF#000000##FFFFFF
##271C6E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271c6e;
/* rgb */ color: rgb(39, 28, 110);
/* oklch */ color: oklch(30.1% 0.134 280.8);
Tailwind
colors: {
  custom: {
    50: '#6b5998',
    500: '#271c6e',
    950: '#000000',
  },
}
SCSS
$custom: #271c6e;
$custom-light: #6b5998;
$custom-dark: #000000;
JSON
{
  "hex": "#271c6e",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 248.049,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30129,
    "c": 0.13411,
    "h": 280.8
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#271C6E
secondary
#96A343
accent
#E345CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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