#271B6A#271B6A

#271B6A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.130 H 281.9°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#271B6A
RGBrgb(39, 27, 106)
HSLhsl(249, 59%, 26%)
HSVhsv(249, 75%, 42%)
CMYKcmyk(63.2%, 74.5%, 0%, 58.4%)
CIE-LABlab(16.77, 30.14, -44.12)
CIE-LCHlch(16.77, 53.43, 304.34°)
OKLaboklab(29.56% 0.0267 -0.1271)
OKLCHoklch(29.56% 0.13 281.9)
XYZxyz(3.8293, 2.2555, 13.8664)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B6A #5E6A1B
analogous
#1B366A #271B6A #4E1B6A
triadic
#271B6A #6A271B #1B6A27
tetradic
#271B6A #6A1B36 #5E6A1B #1B6A4E
square
#271B6A #6A1B36 #5E6A1B #1B6A4E
split-complementary
#271B6A #6A4E1B #366A1B
monochromatic
#090618 #150F39 #271B6A #39279B #4B34CB

Accessibility & contrast

On white

14.47
#271B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B6A
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B6A#FFFFFF#000000##FFFFFF
##271B6A1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271b6a;
/* rgb */ color: rgb(39, 27, 106);
/* oklch */ color: oklch(29.6% 0.130 281.9);
Tailwind
colors: {
  custom: {
    50: '#6a5995',
    500: '#271b6a',
    950: '#000000',
  },
}
SCSS
$custom: #271b6a;
$custom-light: #6a5995;
$custom-dark: #000000;
JSON
{
  "hex": "#271b6a",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 249.114,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29558,
    "c": 0.1299,
    "h": 281.9
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#271B6A
secondary
#919F42
accent
#E345CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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