#271BAD#271BAD

#271BAD is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.213 H 272.5°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#271BAD
RGBrgb(39, 27, 173)
HSLhsl(245, 73%, 39%)
HSVhsv(245, 84%, 68%)
CMYKcmyk(77.5%, 84.4%, 0%, 32.2%)
CIE-LABlab(24.42, 51.70, -73.41)
CIE-LCHlch(24.42, 89.78, 305.16°)
OKLaboklab(37.15% 0.0094 -0.2123)
OKLCHoklch(37.15% 0.213 272.5)
XYZxyz(8.7689, 4.2314, 39.8817)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BAD #A1AD1B
analogous
#1B58AD #271BAD #701BAD
triadic
#271BAD #AD271B #1BAD27
tetradic
#271BAD #AD1B58 #A1AD1B #1BAD70
square
#271BAD #AD1B58 #A1AD1B #1BAD70
split-complementary
#271BAD #AD701B #58AD1B
monochromatic
#0F0A43 #1B1378 #271BAD #3728DD #685DE6

Accessibility & contrast

On white

11.37
#271BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#271BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BAD
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BAD#FFFFFF#000000##FFFFFF
##271BAD1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B1
Deuteranopia (green-blind)
#0033AB
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #271bad;
/* rgb */ color: rgb(39, 27, 173);
/* oklch */ color: oklch(37.1% 0.213 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a5dc7',
    500: '#271bad',
    950: '#000000',
  },
}
SCSS
$custom: #271bad;
$custom-light: #7a5dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#271bad",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 173
  },
  "hsl": {
    "h": 244.932,
    "s": 73,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37148,
    "c": 0.21253,
    "h": 272.5
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#271BAD
secondary
#C0CA5A
accent
#F038E1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #271BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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