#271F60#271F60

#271F60 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.111 H 282.7°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#271F60
RGBrgb(39, 31, 96)
HSLhsl(247, 51%, 25%)
HSVhsv(247, 68%, 38%)
CMYKcmyk(59.4%, 67.7%, 0%, 62.4%)
CIE-LABlab(16.78, 24.08, -37.53)
CIE-LCHlch(16.78, 44.59, 302.68°)
OKLaboklab(29.27% 0.0244 -0.1078)
OKLCHoklch(29.27% 0.111 282.7)
XYZxyz(3.4374, 2.2556, 11.3183)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F60 #58601F
analogous
#1F3760 #271F60 #481F60
triadic
#271F60 #60271F #1F6027
tetradic
#271F60 #601F37 #58601F #1F6048
square
#271F60 #601F37 #58601F #1F6048
split-complementary
#271F60 #60481F #37601F
monochromatic
#090717 #141032 #271F60 #3A2E8E #4D3DBD

Accessibility & contrast

On white

14.47
#271F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F60
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F60#FFFFFF#000000##FFFFFF
##271F601.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#0C2F3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271f60;
/* rgb */ color: rgb(39, 31, 96);
/* oklch */ color: oklch(29.3% 0.111 282.7);
Tailwind
colors: {
  custom: {
    50: '#685b8e',
    500: '#271f60',
    950: '#000000',
  },
}
SCSS
$custom: #271f60;
$custom-light: #685b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#271f60",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 247.385,
    "s": 51.181,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29265,
    "c": 0.11052,
    "h": 282.7
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#271F60
secondary
#8B9546
accent
#DB4DC9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271F60

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

Preview Lab → · Contrast checker → · Palette generator →

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