#271989#271989

#271989 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.172 H 276.7°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#271989
RGBrgb(39, 25, 137)
HSLhsl(248, 69%, 32%)
HSVhsv(248, 82%, 54%)
CMYKcmyk(71.5%, 81.8%, 0%, 46.3%)
CIE-LABlab(19.77, 41.51, -59.02)
CIE-LCHlch(19.77, 72.15, 305.12°)
OKLaboklab(32.68% 0.0201 -0.1706)
OKLCHoklch(32.68% 0.172 276.7)
XYZxyz(5.6982, 2.9322, 23.9277)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271989 #7B8919
analogous
#194389 #271989 #5F1989
triadic
#271989 #892719 #198927
tetradic
#271989 #891943 #7B8919 #19895F
square
#271989 #891943 #7B8919 #19895F
split-complementary
#271989 #895F19 #438919
monochromatic
#0A0621 #181055 #271989 #3622BD #5440DC

Accessibility & contrast

On white

13.24
#271989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#271989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271989
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271989#FFFFFF#000000##FFFFFF
##2719891.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271989;
/* rgb */ color: rgb(39, 25, 137);
/* oklch */ color: oklch(32.7% 0.172 276.7);
Tailwind
colors: {
  custom: {
    50: '#7259ad',
    500: '#271989',
    950: '#000000',
  },
}
SCSS
$custom: #271989;
$custom-light: #7259ad;
$custom-dark: #000000;
JSON
{
  "hex": "#271989",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 247.5,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32678,
    "c": 0.17175,
    "h": 276.7
  },
  "luminance": 0.02933
}

Semantic roles & 50–950 ramp

primary
#271989
secondary
#ADBC41
accent
#EC3CD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271989

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

Preview Lab → · Contrast checker → · Palette generator →

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