#271E6B#271E6B

#271E6B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.128 H 280.8°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#271E6B
RGBrgb(39, 30, 107)
HSLhsl(247, 56%, 27%)
HSVhsv(247, 72%, 42%)
CMYKcmyk(63.6%, 72%, 0%, 58%)
CIE-LABlab(17.56, 28.60, -43.48)
CIE-LCHlch(17.56, 52.05, 303.34°)
OKLaboklab(30.15% 0.0239 -0.1253)
OKLCHoklch(30.15% 0.128 280.8)
XYZxyz(3.9540, 2.4211, 14.1660)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E6B #626B1E
analogous
#1E3C6B #271E6B #4E1E6B
triadic
#271E6B #6B271E #1E6B27
tetradic
#271E6B #6B1E3C #626B1E #1E6B4E
square
#271E6B #6B1E3C #626B1E #1E6B4E
split-complementary
#271E6B #6B4E1E #3C6B1E
monochromatic
#090718 #16113B #271E6B #382B9B #4C3BC8

Accessibility & contrast

On white

14.15
#271E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E6B
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E6B#FFFFFF#000000##FFFFFF
##271E6B1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271e6b;
/* rgb */ color: rgb(39, 30, 107);
/* oklch */ color: oklch(30.1% 0.128 280.8);
Tailwind
colors: {
  custom: {
    50: '#6a5b96',
    500: '#271e6b',
    950: '#000000',
  },
}
SCSS
$custom: #271e6b;
$custom-light: #6a5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#271e6b",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 247.013,
    "s": 56.204,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3015,
    "c": 0.12754,
    "h": 280.8
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#271E6B
secondary
#959F45
accent
#DF48CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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