#271DBD#271DBD

#271DBD is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.3% C 0.229 H 271.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#271DBD
RGBrgb(39, 29, 189)
HSLhsl(244, 73%, 43%)
HSVhsv(244, 85%, 74%)
CMYKcmyk(79.4%, 84.7%, 0%, 25.9%)
CIE-LABlab(26.69, 55.60, -79.19)
CIE-LCHlch(26.69, 96.76, 305.07°)
OKLaboklab(39.27% 0.0049 -0.2291)
OKLCHoklch(39.27% 0.229 271.2)
XYZxyz(10.4583, 4.9830, 48.5449)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271DBD #B3BD1D
analogous
#1D63BD #271DBD #771DBD
triadic
#271DBD #BD271D #1DBD27
tetradic
#271DBD #BD1D63 #B3BD1D #1DBD77
square
#271DBD #BD1D63 #B3BD1D #1DBD77
split-complementary
#271DBD #BD771D #63BD1D
monochromatic
#110D53 #1C1588 #271DBD #4137E0 #746CE8

Accessibility & contrast

On white

10.52
#271DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#271DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271DBD
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271DBD#FFFFFF#000000##FFFFFF
##271DBD1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047C1
Deuteranopia (green-blind)
#0037BA
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #271dbd;
/* rgb */ color: rgb(39, 29, 189);
/* oklch */ color: oklch(39.3% 0.229 271.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fd2',
    500: '#271dbd',
    950: '#000000',
  },
}
SCSS
$custom: #271dbd;
$custom-light: #7e5fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#271dbd",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 189
  },
  "hsl": {
    "h": 243.75,
    "s": 73.394,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39268,
    "c": 0.22915,
    "h": 271.2
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#271DBD
secondary
#C8CE67
accent
#F038E5
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #271DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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