#271E75#271E75

#271E75 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.141 H 279.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#271E75
RGBrgb(39, 30, 117)
HSLhsl(246, 59%, 29%)
HSVhsv(246, 74%, 46%)
CMYKcmyk(66.7%, 74.4%, 0%, 54.1%)
CIE-LABlab(18.56, 32.07, -48.32)
CIE-LCHlch(18.56, 58.00, 303.57°)
OKLaboklab(31.17% 0.0221 -0.1394)
OKLCHoklch(31.17% 0.141 279)
XYZxyz(4.5108, 2.6439, 17.0988)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E75 #6C751E
analogous
#1E4175 #271E75 #531E75
triadic
#271E75 #75271E #1E7527
tetradic
#271E75 #751E41 #6C751E #1E7553
square
#271E75 #751E41 #6C751E #1E7553
split-complementary
#271E75 #75531E #41751E
monochromatic
#080618 #171244 #271E75 #372AA6 #4E40CE

Accessibility & contrast

On white

13.74
#271E75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271E75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E75
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E75#FFFFFF#000000##FFFFFF
##271E751.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271e75;
/* rgb */ color: rgb(39, 30, 117);
/* oklch */ color: oklch(31.2% 0.141 279.0);
Tailwind
colors: {
  custom: {
    50: '#6c5b9e',
    500: '#271e75',
    950: '#000000',
  },
}
SCSS
$custom: #271e75;
$custom-light: #6c5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#271e75",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 117
  },
  "hsl": {
    "h": 246.207,
    "s": 59.184,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3117,
    "c": 0.14117,
    "h": 279
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#271E75
secondary
#9FA946
accent
#E245D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271E75

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

Preview Lab → · Contrast checker → · Palette generator →

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