#272986#272986

#272986 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.151 H 274.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#272986
RGBrgb(39, 41, 134)
HSLhsl(239, 55%, 34%)
HSVhsv(239, 71%, 53%)
CMYKcmyk(70.9%, 69.4%, 0%, 47.5%)
CIE-LABlab(22.79, 31.15, -52.17)
CIE-LCHlch(22.79, 60.76, 300.84°)
OKLaboklab(34.73% 0.0113 -0.1507)
OKLCHoklch(34.73% 0.151 274.3)
XYZxyz(5.9313, 3.7379, 22.9585)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272986 #868427
analogous
#275986 #272986 #552786
triadic
#272986 #862729 #298627
tetradic
#272986 #862759 #868427 #278655
square
#272986 #862759 #868427 #278655
split-complementary
#272986 #865527 #598627
monochromatic
#0B0C27 #191A57 #272986 #3538B5 #595BCF

Accessibility & contrast

On white

12.02
#272986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#272986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272986
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272986#FFFFFF#000000##FFFFFF
##2729861.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272986;
/* rgb */ color: rgb(39, 41, 134);
/* oklch */ color: oklch(34.7% 0.151 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f63aa',
    500: '#272986',
    950: '#000000',
  },
}
SCSS
$custom: #272986;
$custom-light: #6f63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#272986",
  "rgb": {
    "r": 39,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 238.737,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34725,
    "c": 0.15112,
    "h": 274.3
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#272986
secondary
#B4B255
accent
#DB4ADE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #272986

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

Preview Lab → · Contrast checker → · Palette generator →

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