#271A9F#271A9F

#271A9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.197 H 273.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#271A9F
RGBrgb(39, 26, 159)
HSLhsl(246, 72%, 36%)
HSVhsv(246, 84%, 62%)
CMYKcmyk(75.5%, 83.6%, 0%, 37.6%)
CIE-LABlab(22.56, 47.90, -68.01)
CIE-LCHlch(22.56, 83.19, 305.15°)
OKLaboklab(35.37% 0.0135 -0.1967)
OKLCHoklch(35.37% 0.197 273.9)
XYZxyz(7.4620, 3.6726, 33.1098)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A9F #929F1A
analogous
#1A509F #271A9F #6A1A9F
triadic
#271A9F #9F271A #1A9F27
tetradic
#271A9F #9F1A50 #929F1A #1A9F6A
square
#271A9F #9F1A50 #929F1A #1A9F6A
split-complementary
#271A9F #9F6A1A #509F1A
monochromatic
#0D0936 #1A116A #271A9F #3423D4 #5F51E3

Accessibility & contrast

On white

12.11
#271A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A9F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A9F#FFFFFF#000000##FFFFFF
##271A9F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271a9f;
/* rgb */ color: rgb(39, 26, 159);
/* oklch */ color: oklch(35.4% 0.197 273.9);
Tailwind
colors: {
  custom: {
    50: '#775bbd',
    500: '#271a9f',
    950: '#000000',
  },
}
SCSS
$custom: #271a9f;
$custom-light: #775bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#271a9f",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 245.865,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35371,
    "c": 0.19714,
    "h": 273.9
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#271A9F
secondary
#BAC550
accent
#EF39DD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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