#271D9F#271D9F

#271D9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.195 H 273.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#271D9F
RGBrgb(39, 29, 159)
HSLhsl(245, 69%, 37%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(75.5%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.04, 46.48, -67.21)
CIE-LCHlch(23.04, 81.72, 304.67°)
OKLaboklab(35.71% 0.0125 -0.1944)
OKLCHoklch(35.71% 0.195 273.7)
XYZxyz(7.5320, 3.8125, 33.1331)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D9F #959F1D
analogous
#1D549F #271D9F #681D9F
triadic
#271D9F #9F271D #1D9F27
tetradic
#271D9F #9F1D54 #959F1D #1D9F68
square
#271D9F #9F1D54 #959F1D #1D9F68
split-complementary
#271D9F #9F681D #549F1D
monochromatic
#0E0A37 #1A146B #271D9F #3426D3 #6156E0

Accessibility & contrast

On white

11.91
#271D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#271D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D9F
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D9F#FFFFFF#000000##FFFFFF
##271D9F1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271d9f;
/* rgb */ color: rgb(39, 29, 159);
/* oklch */ color: oklch(35.7% 0.195 273.7);
Tailwind
colors: {
  custom: {
    50: '#765dbd',
    500: '#271d9f',
    950: '#000000',
  },
}
SCSS
$custom: #271d9f;
$custom-light: #765dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#271d9f",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 244.615,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35706,
    "c": 0.19481,
    "h": 273.7
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#271D9F
secondary
#BBC454
accent
#EC3CDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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