#271E88#271E88

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

Color values

HEX#271E88
RGBrgb(39, 30, 136)
HSLhsl(245, 64%, 33%)
HSVhsv(245, 78%, 53%)
CMYKcmyk(71.3%, 77.9%, 0%, 46.7%)
CIE-LABlab(20.58, 38.52, -57.05)
CIE-LCHlch(20.58, 68.83, 304.03°)
OKLaboklab(33.21% 0.0179 -0.1649)
OKLCHoklch(33.21% 0.166 276.2)
XYZxyz(5.7435, 3.1369, 23.5906)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E88 #7F881E
analogous
#1E4A88 #271E88 #5C1E88
triadic
#271E88 #88271E #1E8827
tetradic
#271E88 #881E4A #7F881E #1E885C
square
#271E88 #881E4A #7F881E #1E885C
split-complementary
#271E88 #885C1E #4A881E
monochromatic
#0A0824 #191356 #271E88 #3529BA #5549D7

Accessibility & contrast

On white

12.90
#271E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E88
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E88#FFFFFF#000000##FFFFFF
##271E881.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271e88;
/* rgb */ color: rgb(39, 30, 136);
/* oklch */ color: oklch(33.2% 0.166 276.2);
Tailwind
colors: {
  custom: {
    50: '#715cac',
    500: '#271e88',
    950: '#000000',
  },
}
SCSS
$custom: #271e88;
$custom-light: #715cac;
$custom-dark: #000000;
JSON
{
  "hex": "#271e88",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 245.094,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33214,
    "c": 0.16586,
    "h": 276.2
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271E88

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

Preview Lab → · Contrast checker → · Palette generator →

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