#271F53#271F53

#271F53 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.091 H 286.0°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#271F53
RGBrgb(39, 31, 83)
HSLhsl(249, 46%, 22%)
HSVhsv(249, 63%, 33%)
CMYKcmyk(53%, 62.7%, 0%, 67.5%)
CIE-LABlab(15.67, 19.49, -30.61)
CIE-LCHlch(15.67, 36.29, 302.49°)
OKLaboklab(28.11% 0.0251 -0.0874)
OKLCHoklch(28.11% 0.091 286)
XYZxyz(2.8876, 2.0357, 8.4227)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F53 #4B531F
analogous
#1F3153 #271F53 #411F53
triadic
#271F53 #53271F #1F5327
tetradic
#271F53 #531F31 #4B531F #1F5341
square
#271F53 #531F31 #4B531F #1F5341
split-complementary
#271F53 #53411F #31531F
monochromatic
#0A0816 #120E26 #271F53 #3C3080 #5140AC

Accessibility & contrast

On white

14.92
#271F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F53
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F53#FFFFFF#000000##FFFFFF
##271F531.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#002652
Tritanopia (blue-blind)
#182B35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271f53;
/* rgb */ color: rgb(39, 31, 83);
/* oklch */ color: oklch(28.1% 0.091 286.0);
Tailwind
colors: {
  custom: {
    50: '#655b84',
    500: '#271f53',
    950: '#000000',
  },
}
SCSS
$custom: #271f53;
$custom-light: #655b84;
$custom-dark: #000000;
JSON
{
  "hex": "#271f53",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 249.231,
    "s": 45.614,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2811,
    "c": 0.09098,
    "h": 286
  },
  "luminance": 0.02036
}

Semantic roles & 50–950 ramp

primary
#271F53
secondary
#7E8846
accent
#D553C1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271F53

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

Preview Lab → · Contrast checker → · Palette generator →

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