#271D93#271D93

#271D93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.180 H 275.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#271D93
RGBrgb(39, 29, 147)
HSLhsl(245, 67%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(73.5%, 80.3%, 0%, 42.4%)
CIE-LABlab(21.64, 42.66, -62.16)
CIE-LCHlch(21.64, 75.39, 304.46°)
OKLaboklab(34.32% 0.0156 -0.1797)
OKLCHoklch(34.32% 0.18 275)
XYZxyz(6.5408, 3.4160, 27.9128)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D93 #89931D
analogous
#1D4E93 #271D93 #621D93
triadic
#271D93 #93271D #1D9327
tetradic
#271D93 #931D4E #89931D #1D9362
square
#271D93 #931D4E #89931D #1D9362
split-complementary
#271D93 #93621D #4E931D
monochromatic
#0C092D #191360 #271D93 #3527C6 #5A4EDC

Accessibility & contrast

On white

12.47
#271D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#271D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D93
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D93#FFFFFF#000000##FFFFFF
##271D931.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d93;
/* rgb */ color: rgb(39, 29, 147);
/* oklch */ color: oklch(34.3% 0.180 275.0);
Tailwind
colors: {
  custom: {
    50: '#745cb4',
    500: '#271d93',
    950: '#000000',
  },
}
SCSS
$custom: #271d93;
$custom-light: #745cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#271d93",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 245.085,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3432,
    "c": 0.18043,
    "h": 275
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#271D93
secondary
#B5BF4D
accent
#EA3EDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271D93

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

Preview Lab → · Contrast checker → · Palette generator →

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