#271C93#271C93

#271C93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.181 H 275.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#271C93
RGBrgb(39, 28, 147)
HSLhsl(246, 68%, 34%)
HSVhsv(246, 81%, 58%)
CMYKcmyk(73.5%, 81%, 0%, 42.4%)
CIE-LABlab(21.46, 43.18, -62.45)
CIE-LCHlch(21.46, 75.92, 304.66°)
OKLaboklab(34.2% 0.016 -0.1806)
OKLCHoklch(34.2% 0.181 275.1)
XYZxyz(6.5167, 3.3678, 27.9047)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C93 #88931C
analogous
#1C4D93 #271C93 #631C93
triadic
#271C93 #93271C #1C9327
tetradic
#271C93 #931C4D #88931C #1C9363
square
#271C93 #931C4D #88931C #1C9363
split-complementary
#271C93 #93631C #4D931C
monochromatic
#0C082C #191260 #271C93 #3526C6 #5A4CDD

Accessibility & contrast

On white

12.55
#271C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C93
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C93#FFFFFF#000000##FFFFFF
##271C931.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c93;
/* rgb */ color: rgb(39, 28, 147);
/* oklch */ color: oklch(34.2% 0.181 275.1);
Tailwind
colors: {
  custom: {
    50: '#745cb4',
    500: '#271c93',
    950: '#000000',
  },
}
SCSS
$custom: #271c93;
$custom-light: #745cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#271c93",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 245.546,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.1813,
    "h": 275.1
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#271C93
secondary
#B5BF4C
accent
#EB3DDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271C93

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

Preview Lab → · Contrast checker → · Palette generator →

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