#271B93#271B93

#271B93 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.182 H 275.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#271B93
RGBrgb(39, 27, 147)
HSLhsl(246, 69%, 34%)
HSVhsv(246, 82%, 58%)
CMYKcmyk(73.5%, 81.6%, 0%, 42.4%)
CIE-LABlab(21.29, 43.68, -62.74)
CIE-LCHlch(21.29, 76.45, 304.85°)
OKLaboklab(34.08% 0.0164 -0.1814)
OKLCHoklch(34.08% 0.182 275.2)
XYZxyz(6.4934, 3.3212, 27.8969)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B93 #87931B
analogous
#1B4B93 #271B93 #631B93
triadic
#271B93 #93271B #1B9327
tetradic
#271B93 #931B4B #87931B #1B9363
square
#271B93 #931B4B #87931B #1B9363
split-complementary
#271B93 #93631B #4B931B
monochromatic
#0C082C #19125F #271B93 #3524C7 #594BDE

Accessibility & contrast

On white

12.62
#271B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B93
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B93#FFFFFF#000000##FFFFFF
##271B931.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271b93;
/* rgb */ color: rgb(39, 27, 147);
/* oklch */ color: oklch(34.1% 0.182 275.2);
Tailwind
colors: {
  custom: {
    50: '#745bb4',
    500: '#271b93',
    950: '#000000',
  },
}
SCSS
$custom: #271b93;
$custom-light: #745bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#271b93",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 246,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34075,
    "c": 0.18215,
    "h": 275.2
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#271B93
secondary
#B4C04A
accent
#EC3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271B93

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

Preview Lab → · Contrast checker → · Palette generator →

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