#271F6F#271F6F

#271F6F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.132 H 279.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#271F6F
RGBrgb(39, 31, 111)
HSLhsl(246, 56%, 28%)
HSVhsv(246, 72%, 44%)
CMYKcmyk(64.9%, 72.1%, 0%, 56.5%)
CIE-LABlab(18.18, 29.36, -45.06)
CIE-LCHlch(18.18, 53.79, 303.09°)
OKLaboklab(30.72% 0.0224 -0.1299)
OKLCHoklch(30.72% 0.132 279.8)
XYZxyz(4.1950, 2.5587, 15.3087)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F6F #676F1F
analogous
#1F3F6F #271F6F #4F1F6F
triadic
#271F6F #6F271F #1F6F27
tetradic
#271F6F #6F1F3F #676F1F #1F6F4F
square
#271F6F #6F1F3F #676F1F #1F6F4F
split-complementary
#271F6F #6F4F1F #3F6F1F
monochromatic
#080718 #16123F #271F6F #382C9F #4D3FC9

Accessibility & contrast

On white

13.89
#271F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#271F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F6F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F6F#FFFFFF#000000##FFFFFF
##271F6F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271f6f;
/* rgb */ color: rgb(39, 31, 111);
/* oklch */ color: oklch(30.7% 0.132 279.8);
Tailwind
colors: {
  custom: {
    50: '#6b5b99',
    500: '#271f6f',
    950: '#000000',
  },
}
SCSS
$custom: #271f6f;
$custom-light: #6b5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#271f6f",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 246,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30718,
    "c": 0.13182,
    "h": 279.8
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#271F6F
secondary
#9AA347
accent
#E048D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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