#271A72#271A72

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

Color values

HEX#271A72
RGBrgb(39, 26, 114)
HSLhsl(249, 63%, 27%)
HSVhsv(249, 77%, 45%)
CMYKcmyk(65.8%, 77.2%, 0%, 55.3%)
CIE-LABlab(17.39, 33.44, -48.31)
CIE-LCHlch(17.39, 58.76, 304.70°)
OKLaboklab(30.25% 0.0257 -0.1394)
OKLCHoklch(30.25% 0.142 280.4)
XYZxyz(4.2424, 2.3847, 16.1531)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A72 #65721A
analogous
#1A3972 #271A72 #531A72
triadic
#271A72 #72271A #1A7227
tetradic
#271A72 #721A39 #65721A #1A7253
square
#271A72 #721A39 #65721A #1A7253
split-complementary
#271A72 #72531A #39721A
monochromatic
#090619 #160F40 #271A72 #3825A4 #4C35D1

Accessibility & contrast

On white

14.22
#271A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A72
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A72#FFFFFF#000000##FFFFFF
##271A721.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271a72;
/* rgb */ color: rgb(39, 26, 114);
/* oklch */ color: oklch(30.2% 0.142 280.4);
Tailwind
colors: {
  custom: {
    50: '#6c589b',
    500: '#271a72',
    950: '#000000',
  },
}
SCSS
$custom: #271a72;
$custom-light: #6c589b;
$custom-dark: #000000;
JSON
{
  "hex": "#271a72",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 248.864,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.14173,
    "h": 280.4
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#271A72
secondary
#98A741
accent
#E642CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271A72

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

Preview Lab → · Contrast checker → · Palette generator →

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