#271D6A#271D6A

#271D6A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.127 H 281.3°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#271D6A
RGBrgb(39, 29, 106)
HSLhsl(248, 57%, 26%)
HSVhsv(248, 73%, 42%)
CMYKcmyk(63.2%, 72.6%, 0%, 58.4%)
CIE-LABlab(17.23, 28.89, -43.37)
CIE-LCHlch(17.23, 52.11, 303.67°)
OKLaboklab(29.88% 0.025 -0.1249)
OKLCHoklch(29.88% 0.127 281.3)
XYZxyz(3.8768, 2.3504, 13.8823)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D6A #606A1D
analogous
#1D3A6A #271D6A #4E1D6A
triadic
#271D6A #6A271D #1D6A27
tetradic
#271D6A #6A1D3A #606A1D #1D6A4E
square
#271D6A #6A1D3A #606A1D #1D6A4E
split-complementary
#271D6A #6A4E1D #3A6A1D
monochromatic
#090718 #15103A #271D6A #392A9A #4B39C9

Accessibility & contrast

On white

14.28
#271D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D6A
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D6A#FFFFFF#000000##FFFFFF
##271D6A1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271d6a;
/* rgb */ color: rgb(39, 29, 106);
/* oklch */ color: oklch(29.9% 0.127 281.3);
Tailwind
colors: {
  custom: {
    50: '#6a5a95',
    500: '#271d6a',
    950: '#000000',
  },
}
SCSS
$custom: #271d6a;
$custom-light: #6a5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#271d6a",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 106
  },
  "hsl": {
    "h": 247.792,
    "s": 57.037,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29883,
    "c": 0.12742,
    "h": 281.3
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#271D6A
secondary
#939F44
accent
#E048CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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