#271B8E#271B8E

#271B8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.176 H 275.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#271B8E
RGBrgb(39, 27, 142)
HSLhsl(246, 68%, 33%)
HSVhsv(246, 81%, 56%)
CMYKcmyk(72.5%, 81%, 0%, 44.3%)
CIE-LABlab(20.70, 42.09, -60.60)
CIE-LCHlch(20.70, 73.78, 304.78°)
OKLaboklab(33.5% 0.0178 -0.1752)
OKLCHoklch(33.5% 0.176 275.8)
XYZxyz(6.1095, 3.1676, 25.8754)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B8E #828E1B
analogous
#1B488E #271B8E #601B8E
triadic
#271B8E #8E271B #1B8E27
tetradic
#271B8E #8E1B48 #828E1B #1B8E60
square
#271B8E #8E1B48 #828E1B #1B8E60
split-complementary
#271B8E #8E601B #488E1B
monochromatic
#0B0727 #19115B #271B8E #3525C1 #5747DC

Accessibility & contrast

On white

12.86
#271B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B8E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B8E#FFFFFF#000000##FFFFFF
##271B8E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271b8e;
/* rgb */ color: rgb(39, 27, 142);
/* oklch */ color: oklch(33.5% 0.176 275.8);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#271b8e',
    950: '#000000',
  },
}
SCSS
$custom: #271b8e;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#271b8e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 246.261,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.17609,
    "h": 275.8
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#271B8E
secondary
#B1BE47
accent
#EB3DD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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