#271A7A#271A7A

#271A7A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.152 H 279.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#271A7A
RGBrgb(39, 26, 122)
HSLhsl(248, 65%, 29%)
HSVhsv(248, 79%, 48%)
CMYKcmyk(68%, 78.7%, 0%, 52.2%)
CIE-LABlab(18.25, 36.11, -52.03)
CIE-LCHlch(18.25, 63.33, 304.76°)
OKLaboklab(31.12% 0.0237 -0.1502)
OKLCHoklch(31.12% 0.152 279)
XYZxyz(4.7178, 2.5749, 18.6570)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A7A #6D7A1A
analogous
#1A3D7A #271A7A #571A7A
triadic
#271A7A #7A271A #1A7A27
tetradic
#271A7A #7A1A3D #6D7A1A #1A7A57
square
#271A7A #7A1A3D #6D7A1A #1A7A57
split-complementary
#271A7A #7A571A #3D7A1A
monochromatic
#080519 #170F48 #271A7A #3725AC #4F39D5

Accessibility & contrast

On white

13.86
#271A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A7A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A7A#FFFFFF#000000##FFFFFF
##271A7A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271a7a;
/* rgb */ color: rgb(39, 26, 122);
/* oklch */ color: oklch(31.1% 0.152 279.0);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#271a7a',
    950: '#000000',
  },
}
SCSS
$custom: #271a7a;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271a7a",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 248.125,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31115,
    "c": 0.15208,
    "h": 279
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#271A7A
secondary
#A0AE41
accent
#E840D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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