#271A7B#271A7B

#271A7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.153 H 278.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#271A7B
RGBrgb(39, 26, 123)
HSLhsl(248, 65%, 29%)
HSVhsv(248, 79%, 48%)
CMYKcmyk(68.3%, 78.9%, 0%, 51.8%)
CIE-LABlab(18.36, 36.44, -52.48)
CIE-LCHlch(18.36, 63.89, 304.77°)
OKLaboklab(31.23% 0.0234 -0.1516)
OKLCHoklch(31.23% 0.153 278.8)
XYZxyz(4.7801, 2.5998, 18.9850)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A7B #6E7B1A
analogous
#1A3E7B #271A7B #581A7B
triadic
#271A7B #7B271A #1A7B27
tetradic
#271A7B #7B1A3E #6E7B1A #1A7B58
square
#271A7B #7B1A3E #6E7B1A #1A7B58
split-complementary
#271A7B #7B581A #3E7B1A
monochromatic
#080519 #170F48 #271A7B #3725AE #4F3AD5

Accessibility & contrast

On white

13.82
#271A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A7B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A7B#FFFFFF#000000##FFFFFF
##271A7B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271a7b;
/* rgb */ color: rgb(39, 26, 123);
/* oklch */ color: oklch(31.2% 0.153 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e59a2',
    500: '#271a7b',
    950: '#000000',
  },
}
SCSS
$custom: #271a7b;
$custom-light: #6e59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#271a7b",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 248.041,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31225,
    "c": 0.15337,
    "h": 278.8
  },
  "luminance": 0.026
}

Semantic roles & 50–950 ramp

primary
#271A7B
secondary
#A1AF42
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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