#271B8A#271B8A

#271B8A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.171 H 276.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#271B8A
RGBrgb(39, 27, 138)
HSLhsl(246, 67%, 32%)
HSVhsv(246, 80%, 54%)
CMYKcmyk(71.7%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.24, 40.80, -58.87)
CIE-LCHlch(20.24, 71.62, 304.73°)
OKLaboklab(33.04% 0.0189 -0.1701)
OKLCHoklch(33.04% 0.171 276.3)
XYZxyz(5.8146, 3.0496, 24.3220)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B8A #7E8A1B
analogous
#1B478A #271B8A #5E1B8A
triadic
#271B8A #8A271B #1B8A27
tetradic
#271B8A #8A1B47 #7E8A1B #1B8A5E
square
#271B8A #8A1B47 #7E8A1B #1B8A5E
split-complementary
#271B8A #8A5E1B #478A1B
monochromatic
#0A0724 #191157 #271B8A #3525BD #5545DB

Accessibility & contrast

On white

13.04
#271B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B8A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B8A#FFFFFF#000000##FFFFFF
##271B8A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271b8a;
/* rgb */ color: rgb(39, 27, 138);
/* oklch */ color: oklch(33.0% 0.171 276.3);
Tailwind
colors: {
  custom: {
    50: '#725aad',
    500: '#271b8a',
    950: '#000000',
  },
}
SCSS
$custom: #271b8a;
$custom-light: #725aad;
$custom-dark: #000000;
JSON
{
  "hex": "#271b8a",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 246.486,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33041,
    "c": 0.17119,
    "h": 276.3
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#271B8A
secondary
#AFBC45
accent
#EA3ED8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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