#271A9E#271A9E

#271A9E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.3% C 0.196 H 274.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#271A9E
RGBrgb(39, 26, 158)
HSLhsl(246, 72%, 36%)
HSVhsv(246, 84%, 62%)
CMYKcmyk(75.3%, 83.5%, 0%, 38%)
CIE-LABlab(22.44, 47.59, -67.60)
CIE-LCHlch(22.44, 82.67, 305.15°)
OKLaboklab(35.25% 0.0138 -0.1955)
OKLCHoklch(35.25% 0.196 274)
XYZxyz(7.3756, 3.6380, 32.6546)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A9E #919E1A
analogous
#1A4F9E #271A9E #691A9E
triadic
#271A9E #9E271A #1A9E27
tetradic
#271A9E #9E1A4F #919E1A #1A9E69
square
#271A9E #9E1A4F #919E1A #1A9E69
split-complementary
#271A9E #9E691A #4F9E1A
monochromatic
#0D0935 #1A1169 #271A9E #3423D3 #5F50E2

Accessibility & contrast

On white

12.15
#271A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#271A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A9E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A9E#FFFFFF#000000##FFFFFF
##271A9E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271a9e;
/* rgb */ color: rgb(39, 26, 158);
/* oklch */ color: oklch(35.3% 0.196 274.0);
Tailwind
colors: {
  custom: {
    50: '#765bbc',
    500: '#271a9e',
    950: '#000000',
  },
}
SCSS
$custom: #271a9e;
$custom-light: #765bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#271a9e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 245.909,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35252,
    "c": 0.19599,
    "h": 274
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#271A9E
secondary
#B9C54F
accent
#EE39DD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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