#271E56#271E56

#271E56 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.2% C 0.097 H 285.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#271E56
RGBrgb(39, 30, 86)
HSLhsl(250, 48%, 23%)
HSVhsv(250, 65%, 34%)
CMYKcmyk(54.7%, 65.1%, 0%, 66.3%)
CIE-LABlab(15.65, 21.23, -32.67)
CIE-LCHlch(15.65, 38.96, 303.02°)
OKLaboklab(28.17% 0.0263 -0.0935)
OKLCHoklch(28.17% 0.097 285.7)
XYZxyz(2.9802, 2.0316, 9.0374)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E56 #4D561E
analogous
#1E3156 #271E56 #431E56
triadic
#271E56 #56271E #1E5627
tetradic
#271E56 #561E31 #4D561E #1E5643
square
#271E56 #561E31 #4D561E #1E5643
split-complementary
#271E56 #56431E #31561E
monochromatic
#0A0817 #120E29 #271E56 #3C2E83 #503EB1

Accessibility & contrast

On white

14.93
#271E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E56
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E56#FFFFFF#000000##FFFFFF
##271E561.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#162B36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271e56;
/* rgb */ color: rgb(39, 30, 86);
/* oklch */ color: oklch(28.2% 0.097 285.7);
Tailwind
colors: {
  custom: {
    50: '#665a86',
    500: '#271e56',
    950: '#000000',
  },
}
SCSS
$custom: #271e56;
$custom-light: #665a86;
$custom-dark: #000000;
JSON
{
  "hex": "#271e56",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 249.643,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28173,
    "c": 0.09714,
    "h": 285.7
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#271E56
secondary
#808B45
accent
#D850C2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271E56

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

Preview Lab → · Contrast checker → · Palette generator →

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