#271D8E#271D8E

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

Color values

HEX#271D8E
RGBrgb(39, 29, 142)
HSLhsl(245, 66%, 34%)
HSVhsv(245, 80%, 56%)
CMYKcmyk(72.5%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.07, 41.04, -60.00)
CIE-LCHlch(21.07, 72.69, 304.37°)
OKLaboklab(33.75% 0.0169 -0.1735)
OKLCHoklch(33.75% 0.174 275.6)
XYZxyz(6.1569, 3.2625, 25.8912)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D8E #848E1D
analogous
#1D4B8E #271D8E #5F1D8E
triadic
#271D8E #8E271D #1D8E27
tetradic
#271D8E #8E1D4B #848E1D #1D8E5F
square
#271D8E #8E1D4B #848E1D #1D8E5F
split-complementary
#271D8E #8E5F1D #4B8E1D
monochromatic
#0B0828 #19135B #271D8E #3527C1 #584BDA

Accessibility & contrast

On white

12.71
#271D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D8E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D8E#FFFFFF#000000##FFFFFF
##271D8E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d8e;
/* rgb */ color: rgb(39, 29, 142);
/* oklch */ color: oklch(33.8% 0.174 275.6);
Tailwind
colors: {
  custom: {
    50: '#725cb0',
    500: '#271d8e',
    950: '#000000',
  },
}
SCSS
$custom: #271d8e;
$custom-light: #725cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#271d8e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 245.31,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33751,
    "c": 0.1743,
    "h": 275.6
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#271D8E
secondary
#B2BD4A
accent
#E93FDA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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