#271E89#271E89

#271E89 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.167 H 276.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#271E89
RGBrgb(39, 30, 137)
HSLhsl(245, 64%, 33%)
HSVhsv(245, 78%, 54%)
CMYKcmyk(71.5%, 78.1%, 0%, 46.3%)
CIE-LABlab(20.69, 38.85, -57.49)
CIE-LCHlch(20.69, 69.39, 304.05°)
OKLaboklab(33.32% 0.0176 -0.1662)
OKLCHoklch(33.32% 0.167 276)
XYZxyz(5.8149, 3.1655, 23.9666)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E89 #80891E
analogous
#1E4A89 #271E89 #5D1E89
triadic
#271E89 #89271E #1E8927
tetradic
#271E89 #891E4A #80891E #1E895D
square
#271E89 #891E4A #80891E #1E895D
split-complementary
#271E89 #895D1E #4A891E
monochromatic
#0A0825 #191357 #271E89 #3529BB #564AD7

Accessibility & contrast

On white

12.86
#271E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E89
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E89#FFFFFF#000000##FFFFFF
##271E891.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271e89;
/* rgb */ color: rgb(39, 30, 137);
/* oklch */ color: oklch(33.3% 0.167 276.0);
Tailwind
colors: {
  custom: {
    50: '#715cad',
    500: '#271e89',
    950: '#000000',
  },
}
SCSS
$custom: #271e89;
$custom-light: #715cad;
$custom-dark: #000000;
JSON
{
  "hex": "#271e89",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 245.047,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33325,
    "c": 0.16712,
    "h": 276
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#271E89
secondary
#B0BA49
accent
#E741D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271E89

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

Preview Lab → · Contrast checker → · Palette generator →

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