#271E7D#271E7D

#271E7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.152 H 277.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#271E7D
RGBrgb(39, 30, 125)
HSLhsl(246, 61%, 30%)
HSVhsv(246, 76%, 49%)
CMYKcmyk(68.8%, 76%, 0%, 51%)
CIE-LABlab(19.39, 34.81, -52.06)
CIE-LCHlch(19.39, 62.63, 303.77°)
OKLaboklab(32.02% 0.0204 -0.1504)
OKLCHoklch(32.02% 0.152 277.7)
XYZxyz(5.0014, 2.8401, 19.6827)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E7D #747D1E
analogous
#1E457D #271E7D #561E7D
triadic
#271E7D #7D271E #1E7D27
tetradic
#271E7D #7D1E45 #747D1E #1E7D56
square
#271E7D #7D1E45 #747D1E #1E7D56
split-complementary
#271E7D #7D561E #457D1E
monochromatic
#08061A #18124C #271E7D #362AAE #5143D2

Accessibility & contrast

On white

13.39
#271E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E7D
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E7D#FFFFFF#000000##FFFFFF
##271E7D1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271e7d;
/* rgb */ color: rgb(39, 30, 125);
/* oklch */ color: oklch(32.0% 0.152 277.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ba4',
    500: '#271e7d',
    950: '#000000',
  },
}
SCSS
$custom: #271e7d;
$custom-light: #6e5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#271e7d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 245.684,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32016,
    "c": 0.15174,
    "h": 277.7
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#271E7D
secondary
#A6B046
accent
#E443D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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