#271D75#271D75

#271D75 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.142 H 279.2°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#271D75
RGBrgb(39, 29, 117)
HSLhsl(247, 60%, 29%)
HSVhsv(247, 75%, 46%)
CMYKcmyk(66.7%, 75.2%, 0%, 54.1%)
CIE-LABlab(18.34, 32.68, -48.68)
CIE-LCHlch(18.34, 58.63, 303.87°)
OKLaboklab(31.01% 0.0228 -0.1405)
OKLCHoklch(31.01% 0.142 279.2)
XYZxyz(4.4859, 2.5941, 17.0905)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D75 #6B751D
analogous
#1D3F75 #271D75 #531D75
triadic
#271D75 #75271D #1D7527
tetradic
#271D75 #751D3F #6B751D #1D7553
square
#271D75 #751D3F #6B751D #1D7553
split-complementary
#271D75 #75531D #3F751D
monochromatic
#080619 #171144 #271D75 #3729A6 #4E3DCF

Accessibility & contrast

On white

13.83
#271D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D75
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D75#FFFFFF#000000##FFFFFF
##271D751.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271d75;
/* rgb */ color: rgb(39, 29, 117);
/* oklch */ color: oklch(31.0% 0.142 279.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a9e',
    500: '#271d75',
    950: '#000000',
  },
}
SCSS
$custom: #271d75;
$custom-light: #6c5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#271d75",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 117
  },
  "hsl": {
    "h": 246.818,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31015,
    "c": 0.14233,
    "h": 279.2
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#271D75
secondary
#9EA945
accent
#E344D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271D75

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

Preview Lab → · Contrast checker → · Palette generator →

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