#271789#271789

#271789 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.173 H 276.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#271789
RGBrgb(39, 23, 137)
HSLhsl(248, 71%, 31%)
HSVhsv(248, 83%, 54%)
CMYKcmyk(71.5%, 83.2%, 0%, 46.3%)
CIE-LABlab(19.43, 42.49, -59.58)
CIE-LCHlch(19.43, 73.18, 305.50°)
OKLaboklab(32.44% 0.021 -0.1722)
OKLCHoklch(32.44% 0.173 276.9)
XYZxyz(5.6570, 2.8498, 23.9140)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271789 #798917
analogous
#174089 #271789 #601789
triadic
#271789 #892717 #178927
tetradic
#271789 #891740 #798917 #178960
square
#271789 #891740 #798917 #178960
split-complementary
#271789 #896017 #408917
monochromatic
#090520 #180E55 #271789 #3620BD #533CDE

Accessibility & contrast

On white

13.38
#271789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271789
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271789#FFFFFF#000000##FFFFFF
##2717891.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271789;
/* rgb */ color: rgb(39, 23, 137);
/* oklch */ color: oklch(32.4% 0.173 276.9);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#271789',
    950: '#000000',
  },
}
SCSS
$custom: #271789;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#271789",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 248.421,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32444,
    "c": 0.17344,
    "h": 276.9
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#271789
secondary
#ABBD3F
accent
#EE3AD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271789

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

Preview Lab → · Contrast checker → · Palette generator →

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