#272587#272587

#272587 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.157 H 275.1°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#272587
RGBrgb(39, 37, 135)
HSLhsl(241, 57%, 34%)
HSVhsv(241, 73%, 53%)
CMYKcmyk(71.1%, 72.6%, 0%, 47.1%)
CIE-LABlab(21.96, 34.03, -54.16)
CIE-LCHlch(21.96, 63.96, 302.15°)
OKLaboklab(34.16% 0.0139 -0.1565)
OKLCHoklch(34.16% 0.157 275.1)
XYZxyz(5.8700, 3.5032, 23.2838)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272587 #858725
analogous
#255487 #272587 #582587
triadic
#272587 #872725 #258727
tetradic
#272587 #872554 #858725 #258758
square
#272587 #872554 #858725 #258758
split-complementary
#272587 #875825 #548725
monochromatic
#0B0B27 #191857 #272587 #3532B7 #5856D1

Accessibility & contrast

On white

12.35
#272587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#272587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272587
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272587#FFFFFF#000000##FFFFFF
##2725871.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272587;
/* rgb */ color: rgb(39, 37, 135);
/* oklch */ color: oklch(34.2% 0.157 275.1);
Tailwind
colors: {
  custom: {
    50: '#7060ab',
    500: '#272587',
    950: '#000000',
  },
}
SCSS
$custom: #272587;
$custom-light: #7060ab;
$custom-dark: #000000;
JSON
{
  "hex": "#272587",
  "rgb": {
    "r": 39,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 241.224,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.15713,
    "h": 275.1
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#272587
secondary
#B3B553
accent
#E048DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #272587

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

Preview Lab → · Contrast checker → · Palette generator →

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