#271E6E#271E6E

#271E6E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.132 H 280.2°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#271E6E
RGBrgb(39, 30, 110)
HSLhsl(247, 57%, 27%)
HSVhsv(247, 73%, 43%)
CMYKcmyk(64.5%, 72.7%, 0%, 56.9%)
CIE-LABlab(17.85, 29.65, -44.95)
CIE-LCHlch(17.85, 53.85, 303.40°)
OKLaboklab(30.45% 0.0234 -0.1296)
OKLCHoklch(30.45% 0.132 280.2)
XYZxyz(4.1146, 2.4854, 15.0117)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E6E #656E1E
analogous
#1E3D6E #271E6E #4F1E6E
triadic
#271E6E #6E271E #1E6E27
tetradic
#271E6E #6E1E3D #656E1E #1E6E4F
square
#271E6E #6E1E3D #656E1E #1E6E4F
split-complementary
#271E6E #6E4F1E #3D6E1E
monochromatic
#090718 #16113E #271E6E #382B9E #4C3CCA

Accessibility & contrast

On white

14.03
#271E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E6E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E6E#FFFFFF#000000##FFFFFF
##271E6E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271e6e;
/* rgb */ color: rgb(39, 30, 110);
/* oklch */ color: oklch(30.5% 0.132 280.2);
Tailwind
colors: {
  custom: {
    50: '#6b5b98',
    500: '#271e6e',
    950: '#000000',
  },
}
SCSS
$custom: #271e6e;
$custom-light: #6b5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#271e6e",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 246.75,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30451,
    "c": 0.13168,
    "h": 280.2
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#271E6E
secondary
#98A246
accent
#E047CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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