#2727BA#2727BA

#2727BA is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.218 H 270.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2727BA
RGBrgb(39, 39, 186)
HSLhsl(240, 65%, 44%)
HSVhsv(240, 79%, 73%)
CMYKcmyk(79%, 79%, 0%, 27.1%)
CIE-LABlab(27.92, 50.02, -75.37)
CIE-LCHlch(27.92, 90.46, 303.57°)
OKLaboklab(40.02% 0.0033 -0.2182)
OKLCHoklch(40.02% 0.218 270.9)
XYZxyz(10.4221, 5.4264, 46.9430)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727BA #BABA27
analogous
#2771BA #2727BA #7127BA
triadic
#2727BA #BA2727 #27BA27
tetradic
#2727BA #BA2771 #BABA27 #27BA71
square
#2727BA #BA2771 #BABA27 #27BA71
split-complementary
#2727BA #BA7127 #71BA27
monochromatic
#121255 #1C1C87 #2727BA #4646D8 #7979E3

Accessibility & contrast

On white

10.07
#2727BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2727BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727BA
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727BA#FFFFFF#000000##FFFFFF
##2727BA1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BE
Deuteranopia (green-blind)
#003AB7
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2727ba;
/* rgb */ color: rgb(39, 39, 186);
/* oklch */ color: oklch(40.0% 0.218 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c64d0',
    500: '#2727ba',
    950: '#000000',
  },
}
SCSS
$custom: #2727ba;
$custom-light: #7c64d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2727ba",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 240,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40019,
    "c": 0.21825,
    "h": 270.9
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#2727BA
secondary
#CBCB72
accent
#E840E8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2727BA

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

Preview Lab → · Contrast checker → · Palette generator →

#2727BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva