#271E6D#271E6D

#271E6D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.130 H 280.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#271E6D
RGBrgb(39, 30, 109)
HSLhsl(247, 57%, 27%)
HSVhsv(247, 72%, 43%)
CMYKcmyk(64.2%, 72.5%, 0%, 57.3%)
CIE-LABlab(17.75, 29.30, -44.47)
CIE-LCHlch(17.75, 53.25, 303.38°)
OKLaboklab(30.35% 0.0236 -0.1282)
OKLCHoklch(30.35% 0.13 280.4)
XYZxyz(4.0604, 2.4637, 14.7266)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E6D #646D1E
analogous
#1E3D6D #271E6D #4E1E6D
triadic
#271E6D #6D271E #1E6D27
tetradic
#271E6D #6D1E3D #646D1E #1E6D4E
square
#271E6D #6D1E3D #646D1E #1E6D4E
split-complementary
#271E6D #6D4E1E #3D6D1E
monochromatic
#090718 #16113D #271E6D #382B9D #4C3CC9

Accessibility & contrast

On white

14.07
#271E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E6D
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E6D#FFFFFF#000000##FFFFFF
##271E6D1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271e6d;
/* rgb */ color: rgb(39, 30, 109);
/* oklch */ color: oklch(30.3% 0.130 280.4);
Tailwind
colors: {
  custom: {
    50: '#6b5b98',
    500: '#271e6d',
    950: '#000000',
  },
}
SCSS
$custom: #271e6d;
$custom-light: #6b5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#271e6d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 246.835,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3035,
    "c": 0.13031,
    "h": 280.4
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#271E6D
secondary
#97A145
accent
#E048CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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