#271A93#271A93

#271A93 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.183 H 275.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#271A93
RGBrgb(39, 26, 147)
HSLhsl(246, 70%, 34%)
HSVhsv(246, 82%, 58%)
CMYKcmyk(73.5%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.12, 44.17, -63.02)
CIE-LCHlch(21.12, 76.96, 305.03°)
OKLaboklab(33.96% 0.0168 -0.1822)
OKLCHoklch(33.96% 0.183 275.3)
XYZxyz(6.4708, 3.2761, 27.8894)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A93 #86931A
analogous
#1A4A93 #271A93 #641A93
triadic
#271A93 #93271A #1A9327
tetradic
#271A93 #931A4A #86931A #1A9364
square
#271A93 #931A4A #86931A #1A9364
split-complementary
#271A93 #93641A #4A931A
monochromatic
#0B082B #19115F #271A93 #3523C7 #5949DF

Accessibility & contrast

On white

12.69
#271A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A93
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A93#FFFFFF#000000##FFFFFF
##271A931.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002D91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271a93;
/* rgb */ color: rgb(39, 26, 147);
/* oklch */ color: oklch(34.0% 0.183 275.3);
Tailwind
colors: {
  custom: {
    50: '#745ab4',
    500: '#271a93',
    950: '#000000',
  },
}
SCSS
$custom: #271a93;
$custom-light: #745ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#271a93",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 246.446,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33957,
    "c": 0.18299,
    "h": 275.3
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#271A93
secondary
#B4C048
accent
#ED3BDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271A93

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

Preview Lab → · Contrast checker → · Palette generator →

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