#271980#271980

#271980 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.161 H 278.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#271980
RGBrgb(39, 25, 128)
HSLhsl(248, 67%, 30%)
HSVhsv(248, 80%, 50%)
CMYKcmyk(69.5%, 80.5%, 0%, 49.8%)
CIE-LABlab(18.73, 38.62, -55.06)
CIE-LCHlch(18.73, 67.25, 305.05°)
OKLaboklab(31.65% 0.0226 -0.159)
OKLCHoklch(31.65% 0.161 278.1)
XYZxyz(5.0794, 2.6847, 20.6684)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271980 #728019
analogous
#193F80 #271980 #5A1980
triadic
#271980 #802719 #198027
tetradic
#271980 #80193F #728019 #19805A
square
#271980 #80193F #728019 #19805A
split-complementary
#271980 #805A19 #3F8019
monochromatic
#08051A #170F4D #271980 #3723B3 #503BD9

Accessibility & contrast

On white

13.66
#271980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271980
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271980#FFFFFF#000000##FFFFFF
##2719801.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271980;
/* rgb */ color: rgb(39, 25, 128);
/* oklch */ color: oklch(31.7% 0.161 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f59a6',
    500: '#271980',
    950: '#000000',
  },
}
SCSS
$custom: #271980;
$custom-light: #6f59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271980",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 248.155,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.31651,
    "c": 0.16065,
    "h": 278.1
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#271980
secondary
#A4B441
accent
#EA3ED3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271980

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

Preview Lab → · Contrast checker → · Palette generator →

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