#271979#271979

#271979 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.152 H 279.3°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#271979
RGBrgb(39, 25, 121)
HSLhsl(249, 66%, 29%)
HSVhsv(249, 79%, 47%)
CMYKcmyk(67.8%, 79.3%, 0%, 52.5%)
CIE-LABlab(17.95, 36.33, -51.89)
CIE-LCHlch(17.95, 63.35, 305.00°)
OKLaboklab(30.87% 0.0246 -0.1498)
OKLCHoklch(30.87% 0.152 279.3)
XYZxyz(4.6344, 2.5067, 18.3251)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271979 #6B7919
analogous
#193B79 #271979 #571979
triadic
#271979 #792719 #197927
tetradic
#271979 #79193B #6B7919 #197957
square
#271979 #79193B #6B7919 #197957
split-complementary
#271979 #795719 #3B7919
monochromatic
#080519 #170F46 #271979 #3723AC #4E37D6

Accessibility & contrast

On white

13.99
#271979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271979
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271979#FFFFFF#000000##FFFFFF
##2719791.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271979;
/* rgb */ color: rgb(39, 25, 121);
/* oklch */ color: oklch(30.9% 0.152 279.3);
Tailwind
colors: {
  custom: {
    50: '#6e58a1',
    500: '#271979',
    950: '#000000',
  },
}
SCSS
$custom: #271979;
$custom-light: #6e58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271979",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 248.75,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30868,
    "c": 0.15182,
    "h": 279.3
  },
  "luminance": 0.02507
}

Semantic roles & 50–950 ramp

primary
#271979
secondary
#9EAE40
accent
#E93FD0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271979

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

Preview Lab → · Contrast checker → · Palette generator →

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