#271D60#271D60

#271D60 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.113 H 283.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#271D60
RGBrgb(39, 29, 96)
HSLhsl(249, 54%, 25%)
HSVhsv(249, 70%, 38%)
CMYKcmyk(59.4%, 69.8%, 0%, 62.4%)
CIE-LABlab(16.28, 25.40, -38.34)
CIE-LCHlch(16.28, 45.99, 303.53°)
OKLaboklab(28.9% 0.0265 -0.1102)
OKLCHoklch(28.9% 0.113 283.5)
XYZxyz(3.3867, 2.1544, 11.3014)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D60 #56601D
analogous
#1D3560 #271D60 #491D60
triadic
#271D60 #60271D #1D6027
tetradic
#271D60 #601D35 #56601D #1D6049
square
#271D60 #601D35 #56601D #1D6049
split-complementary
#271D60 #60491D #35601D
monochromatic
#0A0718 #140F31 #271D60 #3A2B8F #4D39BE

Accessibility & contrast

On white

14.68
#271D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271D60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D60
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D60#FFFFFF#000000##FFFFFF
##271D601.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#0C2E3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271d60;
/* rgb */ color: rgb(39, 29, 96);
/* oklch */ color: oklch(28.9% 0.113 283.5);
Tailwind
colors: {
  custom: {
    50: '#685a8e',
    500: '#271d60',
    950: '#000000',
  },
}
SCSS
$custom: #271d60;
$custom-light: #685a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#271d60",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 248.955,
    "s": 53.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28904,
    "c": 0.11333,
    "h": 283.5
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#271D60
secondary
#899544
accent
#DD4BC7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271D60

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

Preview Lab → · Contrast checker → · Palette generator →

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