#2727BD#2727BD

#2727BD is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.222 H 270.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2727BD
RGBrgb(39, 39, 189)
HSLhsl(240, 66%, 45%)
HSVhsv(240, 79%, 74%)
CMYKcmyk(79.4%, 79.4%, 0%, 25.9%)
CIE-LABlab(28.26, 50.98, -76.58)
CIE-LCHlch(28.26, 91.99, 303.65°)
OKLaboklab(40.36% 0.0027 -0.2217)
OKLCHoklch(40.36% 0.222 270.7)
XYZxyz(10.7444, 5.5553, 48.6402)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727BD #BDBD27
analogous
#2772BD #2727BD #7227BD
triadic
#2727BD #BD2727 #27BD27
tetradic
#2727BD #BD2772 #BDBD27 #27BD72
square
#2727BD #BD2772 #BDBD27 #27BD72
split-complementary
#2727BD #BD7227 #72BD27
monochromatic
#121258 #1D1D8A #2727BD #4848D9 #7B7BE4

Accessibility & contrast

On white

9.95
#2727BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2727BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727BD
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727BD#FFFFFF#000000##FFFFFF
##2727BD1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003BBA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2727bd;
/* rgb */ color: rgb(39, 39, 189);
/* oklch */ color: oklch(40.4% 0.222 270.7);
Tailwind
colors: {
  custom: {
    50: '#7d64d2',
    500: '#2727bd',
    950: '#000000',
  },
}
SCSS
$custom: #2727bd;
$custom-light: #7d64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2727bd",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 240,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4036,
    "c": 0.22174,
    "h": 270.7
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#2727BD
secondary
#CCCC74
accent
#E93FE9
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2727BD

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

Preview Lab → · Contrast checker → · Palette generator →

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