#271D92#271D92

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

Color values

HEX#271D92
RGBrgb(39, 29, 146)
HSLhsl(245, 67%, 34%)
HSVhsv(245, 80%, 57%)
CMYKcmyk(73.3%, 80.1%, 0%, 42.7%)
CIE-LABlab(21.52, 42.34, -61.73)
CIE-LCHlch(21.52, 74.85, 304.45°)
OKLaboklab(34.21% 0.0159 -0.1785)
OKLCHoklch(34.21% 0.179 275.1)
XYZxyz(6.4627, 3.3848, 27.5013)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D92 #88921D
analogous
#1D4E92 #271D92 #621D92
triadic
#271D92 #92271D #1D9227
tetradic
#271D92 #921D4E #88921D #1D9262
square
#271D92 #921D4E #88921D #1D9262
split-complementary
#271D92 #92621D #4E921D
monochromatic
#0C092C #19135F #271D92 #3527C5 #5A4EDC

Accessibility & contrast

On white

12.52
#271D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D92
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D92#FFFFFF#000000##FFFFFF
##271D921.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002E90
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271d92;
/* rgb */ color: rgb(39, 29, 146);
/* oklch */ color: oklch(34.2% 0.179 275.1);
Tailwind
colors: {
  custom: {
    50: '#735cb3',
    500: '#271d92',
    950: '#000000',
  },
}
SCSS
$custom: #271d92;
$custom-light: #735cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#271d92",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 146
  },
  "hsl": {
    "h": 245.128,
    "s": 66.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34206,
    "c": 0.1792,
    "h": 275.1
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#271D92
secondary
#B5BE4C
accent
#EA3EDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271D92

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

Preview Lab → · Contrast checker → · Palette generator →

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