#271B72#271B72

#271B72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.141 H 280.2°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#271B72
RGBrgb(39, 27, 114)
HSLhsl(248, 62%, 28%)
HSVhsv(248, 76%, 45%)
CMYKcmyk(65.8%, 76.3%, 0%, 55.3%)
CIE-LABlab(17.60, 32.86, -47.96)
CIE-LCHlch(17.60, 58.14, 304.41°)
OKLaboklab(30.39% 0.025 -0.1384)
OKLCHoklch(30.39% 0.141 280.2)
XYZxyz(4.2649, 2.4298, 16.1606)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B72 #66721B
analogous
#1B3A72 #271B72 #521B72
triadic
#271B72 #72271B #1B7227
tetradic
#271B72 #721B3A #66721B #1B7252
square
#271B72 #721B3A #66721B #1B7252
split-complementary
#271B72 #72521B #3A721B
monochromatic
#080619 #160F41 #271B72 #3827A3 #4D38D0

Accessibility & contrast

On white

14.13
#271B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B72
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B72#FFFFFF#000000##FFFFFF
##271B721.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271b72;
/* rgb */ color: rgb(39, 27, 114);
/* oklch */ color: oklch(30.4% 0.141 280.2);
Tailwind
colors: {
  custom: {
    50: '#6c599b',
    500: '#271b72',
    950: '#000000',
  },
}
SCSS
$custom: #271b72;
$custom-light: #6c599b;
$custom-dark: #000000;
JSON
{
  "hex": "#271b72",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 248.276,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30394,
    "c": 0.14061,
    "h": 280.2
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#271B72
secondary
#99A742
accent
#E543CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271B72

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

Preview Lab → · Contrast checker → · Palette generator →

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