#271F55#271F55

#271F55 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.094 H 285.5°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#271F55
RGBrgb(39, 31, 85)
HSLhsl(249, 47%, 23%)
HSVhsv(249, 64%, 33%)
CMYKcmyk(54.1%, 63.5%, 0%, 66.7%)
CIE-LABlab(15.84, 20.19, -31.70)
CIE-LCHlch(15.84, 37.58, 302.50°)
OKLaboklab(28.28% 0.0251 -0.0907)
OKLCHoklch(28.28% 0.094 285.5)
XYZxyz(2.9659, 2.0670, 8.8353)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F55 #4D551F
analogous
#1F3255 #271F55 #421F55
triadic
#271F55 #55271F #1F5527
tetradic
#271F55 #551F32 #4D551F #1F5542
square
#271F55 #551F32 #4D551F #1F5542
split-complementary
#271F55 #55421F #32551F
monochromatic
#0A0816 #120F28 #271F55 #3C2F82 #5040AF

Accessibility & contrast

On white

14.86
#271F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F55
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F55#FFFFFF#000000##FFFFFF
##271F551.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#162B36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271f55;
/* rgb */ color: rgb(39, 31, 85);
/* oklch */ color: oklch(28.3% 0.094 285.5);
Tailwind
colors: {
  custom: {
    50: '#665b85',
    500: '#271f55',
    950: '#000000',
  },
}
SCSS
$custom: #271f55;
$custom-light: #665b85;
$custom-dark: #000000;
JSON
{
  "hex": "#271f55",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 248.889,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28281,
    "c": 0.09406,
    "h": 285.5
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#271F55
secondary
#808A46
accent
#D652C3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271F55

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

Preview Lab → · Contrast checker → · Palette generator →

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