#272687#272687

#272687 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.156 H 274.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#272687
RGBrgb(39, 38, 135)
HSLhsl(241, 56%, 34%)
HSVhsv(241, 72%, 53%)
CMYKcmyk(71.1%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.18, 33.41, -53.79)
CIE-LCHlch(22.18, 63.32, 301.85°)
OKLaboklab(34.32% 0.0132 -0.1554)
OKLCHoklch(34.32% 0.156 274.9)
XYZxyz(5.9015, 3.5663, 23.2943)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272687 #868726
analogous
#265687 #272687 #582687
triadic
#272687 #872726 #268727
tetradic
#272687 #872656 #868726 #268758
square
#272687 #872656 #868726 #268758
split-complementary
#272687 #875826 #568726
monochromatic
#0B0B27 #191957 #272687 #3533B7 #5958D0

Accessibility & contrast

On white

12.26
#272687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#272687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272687
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272687#FFFFFF#000000##FFFFFF
##2726871.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #272687;
/* rgb */ color: rgb(39, 38, 135);
/* oklch */ color: oklch(34.3% 0.156 274.9);
Tailwind
colors: {
  custom: {
    50: '#7061ab',
    500: '#272687',
    950: '#000000',
  },
}
SCSS
$custom: #272687;
$custom-light: #7061ab;
$custom-dark: #000000;
JSON
{
  "hex": "#272687",
  "rgb": {
    "r": 39,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 240.619,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3432,
    "c": 0.15599,
    "h": 274.9
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#272687
secondary
#B4B554
accent
#DF48DE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #272687

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

Preview Lab → · Contrast checker → · Palette generator →

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