#271E8D#271E8D

#271E8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.172 H 275.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#271E8D
RGBrgb(39, 30, 141)
HSLhsl(245, 65%, 34%)
HSVhsv(245, 79%, 55%)
CMYKcmyk(72.3%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.14, 40.17, -59.25)
CIE-LCHlch(21.14, 71.59, 304.14°)
OKLaboklab(33.77% 0.0167 -0.1713)
OKLCHoklch(33.77% 0.172 275.6)
XYZxyz(6.1071, 3.2824, 25.5059)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E8D #848D1E
analogous
#1E4C8D #271E8D #5E1E8D
triadic
#271E8D #8D271E #1E8D27
tetradic
#271E8D #8D1E4C #848D1E #1E8D5E
square
#271E8D #8D1E4C #848D1E #1E8D5E
split-complementary
#271E8D #8D5E1E #4C8D1E
monochromatic
#0B0928 #19135B #271E8D #3529BF #584CD9

Accessibility & contrast

On white

12.68
#271E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E8D
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E8D#FFFFFF#000000##FFFFFF
##271E8D1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271e8d;
/* rgb */ color: rgb(39, 30, 141);
/* oklch */ color: oklch(33.8% 0.172 275.6);
Tailwind
colors: {
  custom: {
    50: '#725cb0',
    500: '#271e8d',
    950: '#000000',
  },
}
SCSS
$custom: #271e8d;
$custom-light: #725cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#271e8d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 244.865,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33771,
    "c": 0.17213,
    "h": 275.6
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#271E8D
secondary
#B2BC4B
accent
#E840DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #271E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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