#271F66#271F66

#271F66 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.8% C 0.119 H 281.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#271F66
RGBrgb(39, 31, 102)
HSLhsl(247, 53%, 26%)
HSVhsv(247, 70%, 40%)
CMYKcmyk(61.8%, 69.6%, 0%, 60%)
CIE-LABlab(17.32, 26.20, -40.60)
CIE-LCHlch(17.32, 48.31, 302.83°)
OKLaboklab(29.83% 0.0237 -0.1168)
OKLCHoklch(29.83% 0.119 281.5)
XYZxyz(3.7242, 2.3704, 12.8291)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F66 #5E661F
analogous
#1F3A66 #271F66 #4A1F66
triadic
#271F66 #66271F #1F6627
tetradic
#271F66 #661F3A #5E661F #1F664A
square
#271F66 #661F3A #5E661F #1F664A
split-complementary
#271F66 #664A1F #3A661F
monochromatic
#090717 #151137 #271F66 #392D95 #4B3CC4

Accessibility & contrast

On white

14.25
#271F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F66
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F66#FFFFFF#000000##FFFFFF
##271F661.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#02313F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271f66;
/* rgb */ color: rgb(39, 31, 102);
/* oklch */ color: oklch(29.8% 0.119 281.5);
Tailwind
colors: {
  custom: {
    50: '#695b92',
    500: '#271f66',
    950: '#000000',
  },
}
SCSS
$custom: #271f66;
$custom-light: #695b92;
$custom-dark: #000000;
JSON
{
  "hex": "#271f66",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 246.761,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.11919,
    "h": 281.5
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#271F66
secondary
#919A46
accent
#DD4BCC
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F66

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

Preview Lab → · Contrast checker → · Palette generator →

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