#271977#271977

#271977 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.149 H 279.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#271977
RGBrgb(39, 25, 119)
HSLhsl(249, 65%, 28%)
HSVhsv(249, 79%, 47%)
CMYKcmyk(67.2%, 79%, 0%, 53.3%)
CIE-LABlab(17.73, 35.68, -50.97)
CIE-LCHlch(17.73, 62.22, 304.99°)
OKLaboklab(30.65% 0.0251 -0.1471)
OKLCHoklch(30.65% 0.149 279.7)
XYZxyz(4.5130, 2.4581, 17.6858)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271977 #697719
analogous
#193A77 #271977 #561977
triadic
#271977 #772719 #197727
tetradic
#271977 #77193A #697719 #197756
square
#271977 #77193A #697719 #197756
split-complementary
#271977 #775619 #3A7719
monochromatic
#080519 #160E44 #271977 #3824AA #4D36D5

Accessibility & contrast

On white

14.08
#271977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271977
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271977#FFFFFF#000000##FFFFFF
##2719771.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271977;
/* rgb */ color: rgb(39, 25, 119);
/* oklch */ color: oklch(30.6% 0.149 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d589f',
    500: '#271977',
    950: '#000000',
  },
}
SCSS
$custom: #271977;
$custom-light: #6d589f;
$custom-dark: #000000;
JSON
{
  "hex": "#271977",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 248.936,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.14928,
    "h": 279.7
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#271977
secondary
#9CAC40
accent
#E840CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271977

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

Preview Lab → · Contrast checker → · Palette generator →

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