#271B8C#271B8C

#271B8C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.174 H 276.1°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#271B8C
RGBrgb(39, 27, 140)
HSLhsl(246, 68%, 33%)
HSVhsv(246, 81%, 55%)
CMYKcmyk(72.1%, 80.7%, 0%, 45.1%)
CIE-LABlab(20.47, 41.44, -59.74)
CIE-LCHlch(20.47, 72.70, 304.75°)
OKLaboklab(33.27% 0.0183 -0.1727)
OKLCHoklch(33.27% 0.174 276.1)
XYZxyz(5.9607, 3.1081, 25.0916)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B8C #808C1B
analogous
#1B478C #271B8C #601B8C
triadic
#271B8C #8C271B #1B8C27
tetradic
#271B8C #8C1B47 #808C1B #1B8C60
square
#271B8C #8C1B47 #808C1B #1B8C60
split-complementary
#271B8C #8C601B #478C1B
monochromatic
#0A0725 #191159 #271B8C #3525BF #5646DB

Accessibility & contrast

On white

12.95
#271B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B8C
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B8C#FFFFFF#000000##FFFFFF
##271B8C1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271b8c;
/* rgb */ color: rgb(39, 27, 140);
/* oklch */ color: oklch(33.3% 0.174 276.1);
Tailwind
colors: {
  custom: {
    50: '#725baf',
    500: '#271b8c',
    950: '#000000',
  },
}
SCSS
$custom: #271b8c;
$custom-light: #725baf;
$custom-dark: #000000;
JSON
{
  "hex": "#271b8c",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 246.372,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33269,
    "c": 0.17365,
    "h": 276.1
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#271B8C
secondary
#B0BD46
accent
#EB3DD8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #271B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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