#271A90#271A90

#271A90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.179 H 275.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#271A90
RGBrgb(39, 26, 144)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 82%, 56%)
CMYKcmyk(72.9%, 81.9%, 0%, 43.5%)
CIE-LABlab(20.76, 43.23, -61.75)
CIE-LCHlch(20.76, 75.37, 305.00°)
OKLaboklab(33.61% 0.0177 -0.1785)
OKLCHoklch(33.61% 0.179 275.7)
XYZxyz(6.2385, 3.1831, 26.6658)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A90 #83901A
analogous
#1A4890 #271A90 #621A90
triadic
#271A90 #90271A #1A9027
tetradic
#271A90 #901A48 #83901A #1A9062
square
#271A90 #901A48 #83901A #1A9062
split-complementary
#271A90 #90621A #48901A
monochromatic
#0B0728 #19115C #271A90 #3523C4 #5747DE

Accessibility & contrast

On white

12.83
#271A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#271A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A90
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A90#FFFFFF#000000##FFFFFF
##271A901.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271a90;
/* rgb */ color: rgb(39, 26, 144);
/* oklch */ color: oklch(33.6% 0.179 275.7);
Tailwind
colors: {
  custom: {
    50: '#735ab2',
    500: '#271a90',
    950: '#000000',
  },
}
SCSS
$custom: #271a90;
$custom-light: #735ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#271a90",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 246.61,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.17938,
    "h": 275.7
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#271A90
secondary
#B2BF47
accent
#EC3CD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271A90

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

Preview Lab → · Contrast checker → · Palette generator →

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