#271A74#271A74

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

Color values

HEX#271A74
RGBrgb(39, 26, 116)
HSLhsl(249, 63%, 28%)
HSVhsv(249, 78%, 45%)
CMYKcmyk(66.4%, 77.6%, 0%, 54.5%)
CIE-LABlab(17.60, 34.11, -49.25)
CIE-LCHlch(17.60, 59.91, 304.71°)
OKLaboklab(30.46% 0.0252 -0.1421)
OKLCHoklch(30.46% 0.144 280.1)
XYZxyz(4.3575, 2.4307, 16.7592)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A74 #67741A
analogous
#1A3A74 #271A74 #541A74
triadic
#271A74 #74271A #1A7427
tetradic
#271A74 #741A3A #67741A #1A7454
square
#271A74 #741A3A #67741A #1A7454
split-complementary
#271A74 #74541A #3A741A
monochromatic
#080619 #160F42 #271A74 #3825A6 #4D36D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271A74#FFFFFF#000000##FFFFFF
##271A741.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)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271a74;
/* rgb */ color: rgb(39, 26, 116);
/* oklch */ color: oklch(30.5% 0.144 280.1);
Tailwind
colors: {
  custom: {
    50: '#6d589d',
    500: '#271a74',
    950: '#000000',
  },
}
SCSS
$custom: #271a74;
$custom-light: #6d589d;
$custom-dark: #000000;
JSON
{
  "hex": "#271a74",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 248.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30461,
    "c": 0.14435,
    "h": 280.1
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#271A74
secondary
#9AA941
accent
#E641CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271A74

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

Preview Lab → · Contrast checker → · Palette generator →

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