#271E55#271E55

#271E55 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.096 H 286.0°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#271E55
RGBrgb(39, 30, 85)
HSLhsl(250, 48%, 23%)
HSVhsv(250, 65%, 33%)
CMYKcmyk(54.1%, 64.7%, 0%, 66.7%)
CIE-LABlab(15.57, 20.88, -32.13)
CIE-LCHlch(15.57, 38.32, 303.02°)
OKLaboklab(28.08% 0.0263 -0.0919)
OKLCHoklch(28.08% 0.096 286)
XYZxyz(2.9402, 2.0156, 8.8267)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E55 #4C551E
analogous
#1E3155 #271E55 #421E55
triadic
#271E55 #55271E #1E5527
tetradic
#271E55 #551E31 #4C551E #1E5542
square
#271E55 #551E31 #4C551E #1E5542
split-complementary
#271E55 #55421E #31551E
monochromatic
#0A0817 #120E28 #271E55 #3C2E82 #513EAF

Accessibility & contrast

On white

14.97
#271E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E55
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E55#FFFFFF#000000##FFFFFF
##271E551.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271e55;
/* rgb */ color: rgb(39, 30, 85);
/* oklch */ color: oklch(28.1% 0.096 286.0);
Tailwind
colors: {
  custom: {
    50: '#665a85',
    500: '#271e55',
    950: '#000000',
  },
}
SCSS
$custom: #271e55;
$custom-light: #665a85;
$custom-dark: #000000;
JSON
{
  "hex": "#271e55",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 249.818,
    "s": 47.826,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28085,
    "c": 0.09562,
    "h": 286
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#271E55
secondary
#7F8A45
accent
#D750C1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271E55

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

Preview Lab → · Contrast checker → · Palette generator →

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