#271D9A#271D9A

#271D9A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.189 H 274.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#271D9A
RGBrgb(39, 29, 154)
HSLhsl(245, 68%, 36%)
HSVhsv(245, 81%, 60%)
CMYKcmyk(74.7%, 81.2%, 0%, 39.6%)
CIE-LABlab(22.45, 44.90, -65.13)
CIE-LCHlch(22.45, 79.10, 304.59°)
OKLaboklab(35.13% 0.0138 -0.1884)
OKLCHoklch(35.13% 0.189 274.2)
XYZxyz(7.1069, 3.6424, 30.8941)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D9A #909A1D
analogous
#1D519A #271D9A #651D9A
triadic
#271D9A #9A271D #1D9A27
tetradic
#271D9A #9A1D51 #909A1D #1D9A65
square
#271D9A #9A1D51 #909A1D #1D9A65
split-complementary
#271D9A #9A651D #519A1D
monochromatic
#0D0A33 #1A1366 #271D9A #3427CE #5E53DF

Accessibility & contrast

On white

12.15
#271D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#271D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D9A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D9A#FFFFFF#000000##FFFFFF
##271D9A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271d9a;
/* rgb */ color: rgb(39, 29, 154);
/* oklch */ color: oklch(35.1% 0.189 274.2);
Tailwind
colors: {
  custom: {
    50: '#755db9',
    500: '#271d9a',
    950: '#000000',
  },
}
SCSS
$custom: #271d9a;
$custom-light: #755db9;
$custom-dark: #000000;
JSON
{
  "hex": "#271d9a",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 244.8,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.18887,
    "h": 274.2
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#271D9A
secondary
#B9C251
accent
#EB3DDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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