#271985#271985

#271985 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.167 H 277.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#271985
RGBrgb(39, 25, 133)
HSLhsl(248, 68%, 31%)
HSVhsv(248, 81%, 52%)
CMYKcmyk(70.7%, 81.2%, 0%, 47.8%)
CIE-LABlab(19.31, 40.23, -57.27)
CIE-LCHlch(19.31, 69.99, 305.09°)
OKLaboklab(32.22% 0.0212 -0.1655)
OKLCHoklch(32.22% 0.167 277.3)
XYZxyz(5.4166, 2.8196, 22.4445)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271985 #778519
analogous
#194185 #271985 #5D1985
triadic
#271985 #852719 #198527
tetradic
#271985 #851941 #778519 #19855D
square
#271985 #851941 #778519 #19855D
split-complementary
#271985 #855D19 #418519
monochromatic
#09061E #180F51 #271985 #3623B9 #523EDB

Accessibility & contrast

On white

13.43
#271985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271985
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271985#FFFFFF#000000##FFFFFF
##2719851.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271985;
/* rgb */ color: rgb(39, 25, 133);
/* oklch */ color: oklch(32.2% 0.167 277.3);
Tailwind
colors: {
  custom: {
    50: '#7159aa',
    500: '#271985',
    950: '#000000',
  },
}
SCSS
$custom: #271985;
$custom-light: #7159aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271985",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 247.778,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32219,
    "c": 0.16685,
    "h": 277.3
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#271985
secondary
#A9B941
accent
#EB3DD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271985

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

Preview Lab → · Contrast checker → · Palette generator →

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