#271984#271984

#271984 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.166 H 277.5°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#271984
RGBrgb(39, 25, 132)
HSLhsl(248, 68%, 31%)
HSVhsv(248, 81%, 52%)
CMYKcmyk(70.5%, 81.1%, 0%, 48.2%)
CIE-LABlab(19.19, 39.91, -56.83)
CIE-LCHlch(19.19, 69.44, 305.08°)
OKLaboklab(32.1% 0.0215 -0.1642)
OKLCHoklch(32.1% 0.166 277.5)
XYZxyz(5.3478, 2.7921, 22.0824)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271984 #768419
analogous
#194184 #271984 #5C1984
triadic
#271984 #842719 #198427
tetradic
#271984 #841941 #768419 #19845C
square
#271984 #841941 #768419 #19845C
split-complementary
#271984 #845C19 #418419
monochromatic
#09061D #180F51 #271984 #3623B7 #523DDA

Accessibility & contrast

On white

13.47
#271984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271984
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271984#FFFFFF#000000##FFFFFF
##2719841.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271984;
/* rgb */ color: rgb(39, 25, 132);
/* oklch */ color: oklch(32.1% 0.166 277.5);
Tailwind
colors: {
  custom: {
    50: '#7059a9',
    500: '#271984',
    950: '#000000',
  },
}
SCSS
$custom: #271984;
$custom-light: #7059a9;
$custom-dark: #000000;
JSON
{
  "hex": "#271984",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 247.85,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32105,
    "c": 0.16561,
    "h": 277.5
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#271984
secondary
#A8B841
accent
#EB3DD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271984

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

Preview Lab → · Contrast checker → · Palette generator →

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