#271D89#271D89

#271D89 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.168 H 276.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#271D89
RGBrgb(39, 29, 137)
HSLhsl(246, 65%, 33%)
HSVhsv(246, 79%, 54%)
CMYKcmyk(71.5%, 78.8%, 0%, 46.3%)
CIE-LABlab(20.50, 39.40, -57.81)
CIE-LCHlch(20.50, 69.96, 304.28°)
OKLaboklab(33.19% 0.0181 -0.1671)
OKLCHoklch(33.19% 0.168 276.2)
XYZxyz(5.7899, 3.1157, 23.9583)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D89 #7F891D
analogous
#1D4989 #271D89 #5D1D89
triadic
#271D89 #89271D #1D8927
tetradic
#271D89 #891D49 #7F891D #1D895D
square
#271D89 #891D49 #7F891D #1D895D
split-complementary
#271D89 #895D1D #49891D
monochromatic
#0A0824 #191256 #271D89 #3528BC #5548D8

Accessibility & contrast

On white

12.94
#271D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D89
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D89#FFFFFF#000000##FFFFFF
##271D891.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271d89;
/* rgb */ color: rgb(39, 29, 137);
/* oklch */ color: oklch(33.2% 0.168 276.2);
Tailwind
colors: {
  custom: {
    50: '#715bad',
    500: '#271d89',
    950: '#000000',
  },
}
SCSS
$custom: #271d89;
$custom-light: #715bad;
$custom-dark: #000000;
JSON
{
  "hex": "#271d89",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 245.556,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.16809,
    "h": 276.2
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#271D89
secondary
#B0BA47
accent
#E840D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271D89

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

Preview Lab → · Contrast checker → · Palette generator →

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