#271F56#271F56

#271F56 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.096 H 285.2°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#271F56
RGBrgb(39, 31, 86)
HSLhsl(249, 47%, 23%)
HSVhsv(249, 64%, 34%)
CMYKcmyk(54.7%, 64%, 0%, 66.3%)
CIE-LABlab(15.92, 20.55, -32.24)
CIE-LCHlch(15.92, 38.23, 302.51°)
OKLaboklab(28.37% 0.025 -0.0922)
OKLCHoklch(28.37% 0.096 285.2)
XYZxyz(3.0059, 2.0830, 9.0460)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F56 #4E561F
analogous
#1F3256 #271F56 #421F56
triadic
#271F56 #56271F #1F5627
tetradic
#271F56 #561F32 #4E561F #1F5642
square
#271F56 #561F32 #4E561F #1F5642
split-complementary
#271F56 #56421F #32561F
monochromatic
#0A0816 #130F29 #271F56 #3B2F83 #503FB0

Accessibility & contrast

On white

14.82
#271F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F56
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F56#FFFFFF#000000##FFFFFF
##271F561.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#162C37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271f56;
/* rgb */ color: rgb(39, 31, 86);
/* oklch */ color: oklch(28.4% 0.096 285.2);
Tailwind
colors: {
  custom: {
    50: '#665b86',
    500: '#271f56',
    950: '#000000',
  },
}
SCSS
$custom: #271f56;
$custom-light: #665b86;
$custom-dark: #000000;
JSON
{
  "hex": "#271f56",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 248.727,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28367,
    "c": 0.09559,
    "h": 285.2
  },
  "luminance": 0.02083
}

Semantic roles & 50–950 ramp

primary
#271F56
secondary
#818B46
accent
#D751C3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271F56

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

Preview Lab → · Contrast checker → · Palette generator →

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