#271D9D#271D9D

#271D9D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.192 H 273.9°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#271D9D
RGBrgb(39, 29, 157)
HSLhsl(245, 69%, 36%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(75.2%, 81.5%, 0%, 38.4%)
CIE-LABlab(22.80, 45.85, -66.38)
CIE-LCHlch(22.80, 80.68, 304.63°)
OKLaboklab(35.47% 0.013 -0.192)
OKLCHoklch(35.47% 0.192 273.9)
XYZxyz(7.3598, 3.7436, 32.2265)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D9D #939D1D
analogous
#1D539D #271D9D #671D9D
triadic
#271D9D #9D271D #1D9D27
tetradic
#271D9D #9D1D53 #939D1D #1D9D67
square
#271D9D #9D1D53 #939D1D #1D9D67
split-complementary
#271D9D #9D671D #539D1D
monochromatic
#0D0A36 #1A1369 #271D9D #3427D1 #6055E0

Accessibility & contrast

On white

12.01
#271D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#271D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D9D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D9D#FFFFFF#000000##FFFFFF
##271D9D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271d9d;
/* rgb */ color: rgb(39, 29, 157);
/* oklch */ color: oklch(35.5% 0.192 273.9);
Tailwind
colors: {
  custom: {
    50: '#765dbb',
    500: '#271d9d',
    950: '#000000',
  },
}
SCSS
$custom: #271d9d;
$custom-light: #765dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#271d9d",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 244.688,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35473,
    "c": 0.19244,
    "h": 273.9
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#271D9D
secondary
#BAC353
accent
#EC3CDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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