#271D96#271D96

#271D96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.184 H 274.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#271D96
RGBrgb(39, 29, 150)
HSLhsl(245, 68%, 35%)
HSVhsv(245, 81%, 59%)
CMYKcmyk(74%, 80.7%, 0%, 41.2%)
CIE-LABlab(21.99, 43.63, -63.44)
CIE-LCHlch(21.99, 76.99, 304.52°)
OKLaboklab(34.66% 0.0148 -0.1835)
OKLCHoklch(34.66% 0.184 274.6)
XYZxyz(6.7793, 3.5114, 29.1687)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D96 #8C961D
analogous
#1D4F96 #271D96 #641D96
triadic
#271D96 #96271D #1D9627
tetradic
#271D96 #961D4F #8C961D #1D9664
square
#271D96 #961D4F #8C961D #1D9664
split-complementary
#271D96 #96641D #4F961D
monochromatic
#0C092F #1A1363 #271D96 #3427C9 #5C50DD

Accessibility & contrast

On white

12.34
#271D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#271D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D96
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D96#FFFFFF#000000##FFFFFF
##271D961.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271d96;
/* rgb */ color: rgb(39, 29, 150);
/* oklch */ color: oklch(34.7% 0.184 274.6);
Tailwind
colors: {
  custom: {
    50: '#745cb6',
    500: '#271d96',
    950: '#000000',
  },
}
SCSS
$custom: #271d96;
$custom-light: #745cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#271d96",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 244.959,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34664,
    "c": 0.18406,
    "h": 274.6
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#271D96
secondary
#B7C04F
accent
#EA3DDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271D96

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

Preview Lab → · Contrast checker → · Palette generator →

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