#271877#271877

#271877 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.150 H 279.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#271877
RGBrgb(39, 24, 119)
HSLhsl(249, 66%, 28%)
HSVhsv(249, 80%, 47%)
CMYKcmyk(67.2%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.54, 36.23, -51.29)
CIE-LCHlch(17.54, 62.79, 305.23°)
OKLaboklab(30.51% 0.0257 -0.1481)
OKLCHoklch(30.51% 0.15 279.9)
XYZxyz(4.4920, 2.4162, 17.6788)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271877 #687718
analogous
#183877 #271877 #561877
triadic
#271877 #772718 #187727
tetradic
#271877 #771838 #687718 #187756
square
#271877 #771838 #687718 #187756
split-complementary
#271877 #775618 #387718
monochromatic
#080519 #160E44 #271877 #3822AA #4D33D6

Accessibility & contrast

On white

14.16
#271877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271877
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271877#FFFFFF#000000##FFFFFF
##2718771.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271877;
/* rgb */ color: rgb(39, 24, 119);
/* oklch */ color: oklch(30.5% 0.150 279.9);
Tailwind
colors: {
  custom: {
    50: '#6d579f',
    500: '#271877',
    950: '#000000',
  },
}
SCSS
$custom: #271877;
$custom-light: #6d579f;
$custom-dark: #000000;
JSON
{
  "hex": "#271877",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 249.474,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30512,
    "c": 0.15028,
    "h": 279.9
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#271877
secondary
#9BAC3F
accent
#E93ECE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271877

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

Preview Lab → · Contrast checker → · Palette generator →

#271877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva