#271E6A#271E6A

#271E6A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.126 H 281.0°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#271E6A
RGBrgb(39, 30, 106)
HSLhsl(247, 56%, 27%)
HSVhsv(247, 72%, 42%)
CMYKcmyk(63.2%, 71.7%, 0%, 58.4%)
CIE-LABlab(17.46, 28.25, -42.99)
CIE-LCHlch(17.46, 51.44, 303.31°)
OKLaboklab(30.05% 0.0241 -0.1238)
OKLCHoklch(30.05% 0.126 281)
XYZxyz(3.9017, 2.4002, 13.8906)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E6A #616A1E
analogous
#1E3B6A #271E6A #4D1E6A
triadic
#271E6A #6A271E #1E6A27
tetradic
#271E6A #6A1E3B #616A1E #1E6A4D
square
#271E6A #6A1E3B #616A1E #1E6A4D
split-complementary
#271E6A #6A4D1E #3B6A1E
monochromatic
#090718 #15113A #271E6A #392C9A #4C3BC7

Accessibility & contrast

On white

14.19
#271E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E6A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E6A#FFFFFF#000000##FFFFFF
##271E6A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271e6a;
/* rgb */ color: rgb(39, 30, 106);
/* oklch */ color: oklch(30.0% 0.126 281.0);
Tailwind
colors: {
  custom: {
    50: '#6a5b95',
    500: '#271e6a',
    950: '#000000',
  },
}
SCSS
$custom: #271e6a;
$custom-light: #6a5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#271e6a",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 247.105,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3005,
    "c": 0.12615,
    "h": 281
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#271E6A
secondary
#949E45
accent
#DF49CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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