#271E6F#271E6F

#271E6F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.133 H 280.0°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#271E6F
RGBrgb(39, 30, 111)
HSLhsl(247, 57%, 28%)
HSVhsv(247, 73%, 44%)
CMYKcmyk(64.9%, 73%, 0%, 56.5%)
CIE-LABlab(17.95, 29.99, -45.44)
CIE-LCHlch(17.95, 54.45, 303.43°)
OKLaboklab(30.55% 0.0232 -0.131)
OKLCHoklch(30.55% 0.133 280)
XYZxyz(4.1693, 2.5073, 15.3001)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E6F #666F1E
analogous
#1E3D6F #271E6F #501E6F
triadic
#271E6F #6F271E #1E6F27
tetradic
#271E6F #6F1E3D #666F1E #1E6F50
square
#271E6F #6F1E3D #666F1E #1E6F50
split-complementary
#271E6F #6F501E #3D6F1E
monochromatic
#080718 #16113F #271E6F #382B9F #4D3DCB

Accessibility & contrast

On white

13.99
#271E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E6F
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E6F#FFFFFF#000000##FFFFFF
##271E6F1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271e6f;
/* rgb */ color: rgb(39, 30, 111);
/* oklch */ color: oklch(30.6% 0.133 280.0);
Tailwind
colors: {
  custom: {
    50: '#6b5b99',
    500: '#271e6f',
    950: '#000000',
  },
}
SCSS
$custom: #271e6f;
$custom-light: #6b5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#271e6f",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 246.667,
    "s": 57.447,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30553,
    "c": 0.13305,
    "h": 280
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#271E6F
secondary
#99A346
accent
#E147D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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