#271971#271971

#271971 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.142 H 280.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#271971
RGBrgb(39, 25, 113)
HSLhsl(250, 64%, 27%)
HSVhsv(250, 78%, 44%)
CMYKcmyk(65.5%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.08, 33.69, -48.17)
CIE-LCHlch(17.08, 58.79, 304.97°)
OKLaboklab(29.99% 0.0267 -0.139)
OKLCHoklch(29.99% 0.142 280.9)
XYZxyz(4.1640, 2.3185, 15.8477)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271971 #637119
analogous
#193771 #271971 #531971
triadic
#271971 #712719 #197127
tetradic
#271971 #711937 #637119 #197153
square
#271971 #711937 #637119 #197153
split-complementary
#271971 #715319 #377119
monochromatic
#090619 #160E3F #271971 #3824A3 #4C33D2

Accessibility & contrast

On white

14.35
#271971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271971
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271971#FFFFFF#000000##FFFFFF
##2719711.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271971;
/* rgb */ color: rgb(39, 25, 113);
/* oklch */ color: oklch(30.0% 0.142 280.9);
Tailwind
colors: {
  custom: {
    50: '#6c589b',
    500: '#271971',
    950: '#000000',
  },
}
SCSS
$custom: #271971;
$custom-light: #6c589b;
$custom-dark: #000000;
JSON
{
  "hex": "#271971",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 249.545,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29994,
    "c": 0.14152,
    "h": 280.9
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#271971
secondary
#96A640
accent
#E741CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271971

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

Preview Lab → · Contrast checker → · Palette generator →

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