#271F59#271F59

#271F59 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.100 H 284.4°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#271F59
RGBrgb(39, 31, 89)
HSLhsl(248, 48%, 24%)
HSVhsv(248, 65%, 35%)
CMYKcmyk(56.2%, 65.2%, 0%, 65.1%)
CIE-LABlab(16.17, 21.60, -33.85)
CIE-LCHlch(16.17, 40.16, 302.54°)
OKLaboklab(28.63% 0.0249 -0.097)
OKLCHoklch(28.63% 0.1 284.4)
XYZxyz(3.1293, 2.1324, 9.6960)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F59 #51591F
analogous
#1F3459 #271F59 #441F59
triadic
#271F59 #59271F #1F5927
tetradic
#271F59 #591F34 #51591F #1F5944
square
#271F59 #591F34 #51591F #1F5944
split-complementary
#271F59 #59441F #34591F
monochromatic
#0A0817 #130F2C #271F59 #3B2F86 #4F3FB4

Accessibility & contrast

On white

14.72
#271F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F59
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F59#FFFFFF#000000##FFFFFF
##271F591.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#132D38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271f59;
/* rgb */ color: rgb(39, 31, 89);
/* oklch */ color: oklch(28.6% 0.100 284.4);
Tailwind
colors: {
  custom: {
    50: '#665b88',
    500: '#271f59',
    950: '#000000',
  },
}
SCSS
$custom: #271f59;
$custom-light: #665b88;
$custom-dark: #000000;
JSON
{
  "hex": "#271f59",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 248.276,
    "s": 48.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2863,
    "c": 0.10014,
    "h": 284.4
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#271F59
secondary
#848E46
accent
#D850C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271F59

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

Preview Lab → · Contrast checker → · Palette generator →

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