#271C70#271C70

#271C70 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.137 H 280.4°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#271C70
RGBrgb(39, 28, 112)
HSLhsl(248, 60%, 27%)
HSVhsv(248, 75%, 44%)
CMYKcmyk(65.2%, 75%, 0%, 56.1%)
CIE-LABlab(17.61, 31.58, -46.66)
CIE-LCHlch(17.61, 56.34, 304.09°)
OKLaboklab(30.34% 0.0246 -0.1346)
OKLCHoklch(30.34% 0.137 280.4)
XYZxyz(4.1757, 2.4314, 15.5754)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C70 #65701C
analogous
#1C3B70 #271C70 #511C70
triadic
#271C70 #70271C #1C7027
tetradic
#271C70 #701C3B #65701C #1C7051
square
#271C70 #701C3B #65701C #1C7051
split-complementary
#271C70 #70511C #3B701C
monochromatic
#090618 #16103F #271C70 #3828A1 #4C39CD

Accessibility & contrast

On white

14.13
#271C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C70
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C70#FFFFFF#000000##FFFFFF
##271C701.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271c70;
/* rgb */ color: rgb(39, 28, 112);
/* oklch */ color: oklch(30.3% 0.137 280.4);
Tailwind
colors: {
  custom: {
    50: '#6b599a',
    500: '#271c70',
    950: '#000000',
  },
}
SCSS
$custom: #271c70;
$custom-light: #6b599a;
$custom-dark: #000000;
JSON
{
  "hex": "#271c70",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 247.857,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30336,
    "c": 0.13681,
    "h": 280.4
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#271C70
secondary
#98A543
accent
#E345CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271C70

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

Preview Lab → · Contrast checker → · Palette generator →

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