#271E83#271E83

#271E83 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.160 H 276.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#271E83
RGBrgb(39, 30, 131)
HSLhsl(245, 63%, 32%)
HSVhsv(245, 77%, 51%)
CMYKcmyk(70.2%, 77.1%, 0%, 48.6%)
CIE-LABlab(20.04, 36.84, -54.80)
CIE-LCHlch(20.04, 66.04, 303.91°)
OKLaboklab(32.67% 0.019 -0.1584)
OKLCHoklch(32.67% 0.16 276.8)
XYZxyz(5.3964, 2.9981, 21.7626)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E83 #7A831E
analogous
#1E4883 #271E83 #5A1E83
triadic
#271E83 #83271E #1E8327
tetradic
#271E83 #831E48 #7A831E #1E835A
square
#271E83 #831E48 #7A831E #1E835A
split-complementary
#271E83 #835A1E #48831E
monochromatic
#09071F #181351 #271E83 #3629B5 #5347D5

Accessibility & contrast

On white

13.13
#271E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#271E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E83
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E83#FFFFFF#000000##FFFFFF
##271E831.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271e83;
/* rgb */ color: rgb(39, 30, 131);
/* oklch */ color: oklch(32.7% 0.160 276.8);
Tailwind
colors: {
  custom: {
    50: '#705ca8',
    500: '#271e83',
    950: '#000000',
  },
}
SCSS
$custom: #271e83;
$custom-light: #705ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#271e83",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 245.347,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32665,
    "c": 0.1595,
    "h": 276.8
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#271E83
secondary
#ACB647
accent
#E642D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #271E83

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

Preview Lab → · Contrast checker → · Palette generator →

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