#271B74#271B74

#271B74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.143 H 279.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#271B74
RGBrgb(39, 27, 116)
HSLhsl(248, 62%, 28%)
HSVhsv(248, 77%, 45%)
CMYKcmyk(66.4%, 76.7%, 0%, 54.5%)
CIE-LABlab(17.81, 33.53, -48.91)
CIE-LCHlch(17.81, 59.30, 304.43°)
OKLaboklab(30.61% 0.0245 -0.1411)
OKLCHoklch(30.61% 0.143 279.8)
XYZxyz(4.3800, 2.4758, 16.7667)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B74 #68741B
analogous
#1B3B74 #271B74 #531B74
triadic
#271B74 #74271B #1B7427
tetradic
#271B74 #741B3B #68741B #1B7453
square
#271B74 #741B3B #68741B #1B7453
split-complementary
#271B74 #74531B #3B741B
monochromatic
#080619 #160F42 #271B74 #3827A6 #4D39D1

Accessibility & contrast

On white

14.04
#271B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B74
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B74#FFFFFF#000000##FFFFFF
##271B741.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271b74;
/* rgb */ color: rgb(39, 27, 116);
/* oklch */ color: oklch(30.6% 0.143 279.8);
Tailwind
colors: {
  custom: {
    50: '#6c599d',
    500: '#271b74',
    950: '#000000',
  },
}
SCSS
$custom: #271b74;
$custom-light: #6c599d;
$custom-dark: #000000;
JSON
{
  "hex": "#271b74",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 248.09,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30607,
    "c": 0.14325,
    "h": 279.8
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#271B74
secondary
#9BA942
accent
#E542CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271B74

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

Preview Lab → · Contrast checker → · Palette generator →

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