#271C72#271C72

#271C72 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.139 H 280.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#271C72
RGBrgb(39, 28, 114)
HSLhsl(248, 61%, 28%)
HSVhsv(248, 75%, 45%)
CMYKcmyk(65.8%, 75.4%, 0%, 55.3%)
CIE-LABlab(17.81, 32.26, -47.61)
CIE-LCHlch(17.81, 57.51, 304.12°)
OKLaboklab(30.55% 0.0242 -0.1374)
OKLCHoklch(30.55% 0.139 280)
XYZxyz(4.2883, 2.4764, 16.1683)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C72 #67721C
analogous
#1C3C72 #271C72 #521C72
triadic
#271C72 #72271C #1C7227
tetradic
#271C72 #721C3C #67721C #1C7252
square
#271C72 #721C3C #67721C #1C7252
split-complementary
#271C72 #72521C #3C721C
monochromatic
#080619 #161041 #271C72 #3828A3 #4D3ACF

Accessibility & contrast

On white

14.04
#271C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C72
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C72#FFFFFF#000000##FFFFFF
##271C721.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271c72;
/* rgb */ color: rgb(39, 28, 114);
/* oklch */ color: oklch(30.5% 0.139 280.0);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#271c72',
    950: '#000000',
  },
}
SCSS
$custom: #271c72;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#271c72",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 247.674,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30545,
    "c": 0.13948,
    "h": 280
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#271C72
secondary
#9AA643
accent
#E444CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271C72

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

Preview Lab → · Contrast checker → · Palette generator →

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