#271F57#271F57

#271F57 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.097 H 284.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#271F57
RGBrgb(39, 31, 87)
HSLhsl(249, 47%, 23%)
HSVhsv(249, 64%, 34%)
CMYKcmyk(55.2%, 64.4%, 0%, 65.9%)
CIE-LABlab(16.00, 20.90, -32.78)
CIE-LCHlch(16.00, 38.87, 302.52°)
OKLaboklab(28.45% 0.025 -0.0938)
OKLCHoklch(28.45% 0.097 284.9)
XYZxyz(3.0465, 2.0993, 9.2597)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F57 #4F571F
analogous
#1F3357 #271F57 #431F57
triadic
#271F57 #57271F #1F5727
tetradic
#271F57 #571F33 #4F571F #1F5743
square
#271F57 #571F33 #4F571F #1F5743
split-complementary
#271F57 #57431F #33571F
monochromatic
#0A0817 #130F2A #271F57 #3B2F84 #4F3FB1

Accessibility & contrast

On white

14.79
#271F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F57
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F57#FFFFFF#000000##FFFFFF
##271F571.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#152C37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271f57;
/* rgb */ color: rgb(39, 31, 87);
/* oklch */ color: oklch(28.5% 0.097 284.9);
Tailwind
colors: {
  custom: {
    50: '#665b87',
    500: '#271f57',
    950: '#000000',
  },
}
SCSS
$custom: #271f57;
$custom-light: #665b87;
$custom-dark: #000000;
JSON
{
  "hex": "#271f57",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 248.571,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28454,
    "c": 0.09711,
    "h": 284.9
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#271F57
secondary
#828C46
accent
#D751C4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271F57

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

Preview Lab → · Contrast checker → · Palette generator →

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