#271589#271589

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

Color values

HEX#271589
RGBrgb(39, 21, 137)
HSLhsl(249, 73%, 31%)
HSVhsv(249, 85%, 54%)
CMYKcmyk(71.5%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.11, 43.43, -60.11)
CIE-LCHlch(19.11, 74.16, 305.85°)
OKLaboklab(32.22% 0.0218 -0.1737)
OKLCHoklch(32.22% 0.175 277.2)
XYZxyz(5.6188, 2.7733, 23.9013)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271589 #778915
analogous
#153D89 #271589 #611589
triadic
#271589 #892715 #158927
tetradic
#271589 #89153D #778915 #158961
square
#271589 #89153D #778915 #158961
split-complementary
#271589 #896115 #3D8915
monochromatic
#09051F #180D54 #271589 #361DBE #5238E0

Accessibility & contrast

On white

13.51
#271589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271589
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271589#FFFFFF#000000##FFFFFF
##2715891.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271589;
/* rgb */ color: rgb(39, 21, 137);
/* oklch */ color: oklch(32.2% 0.175 277.2);
Tailwind
colors: {
  custom: {
    50: '#7257ad',
    500: '#271589',
    950: '#000000',
  },
}
SCSS
$custom: #271589;
$custom-light: #7257ad;
$custom-dark: #000000;
JSON
{
  "hex": "#271589",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 249.31,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32223,
    "c": 0.17503,
    "h": 277.2
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#271589
secondary
#A9BD3D
accent
#F038D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271589

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

Preview Lab → · Contrast checker → · Palette generator →

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