#271A95#271A95

#271A95 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.185 H 275.0°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#271A95
RGBrgb(39, 26, 149)
HSLhsl(246, 70%, 34%)
HSVhsv(246, 83%, 58%)
CMYKcmyk(73.8%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.35, 44.80, -63.86)
CIE-LCHlch(21.35, 78.01, 305.05°)
OKLaboklab(34.19% 0.0163 -0.1846)
OKLCHoklch(34.19% 0.185 275)
XYZxyz(6.6291, 3.3394, 28.7231)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A95 #88951A
analogous
#1A4B95 #271A95 #641A95
triadic
#271A95 #95271A #1A9527
tetradic
#271A95 #951A4B #88951A #1A9564
square
#271A95 #951A4B #88951A #1A9564
split-complementary
#271A95 #95641A #4B951A
monochromatic
#0C082D #191161 #271A95 #3523C9 #5A4ADF

Accessibility & contrast

On white

12.59
#271A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#271A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A95
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A95#FFFFFF#000000##FFFFFF
##271A951.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271a95;
/* rgb */ color: rgb(39, 26, 149);
/* oklch */ color: oklch(34.2% 0.185 275.0);
Tailwind
colors: {
  custom: {
    50: '#745bb5',
    500: '#271a95',
    950: '#000000',
  },
}
SCSS
$custom: #271a95;
$custom-light: #745bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#271a95",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 246.341,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.18537,
    "h": 275
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271A95

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

Preview Lab → · Contrast checker → · Palette generator →

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