#2727B1#2727B1

#2727B1 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.0% C 0.208 H 271.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2727B1
RGBrgb(39, 39, 177)
HSLhsl(240, 64%, 42%)
HSVhsv(240, 78%, 69%)
CMYKcmyk(78%, 78%, 0%, 30.6%)
CIE-LABlab(26.89, 47.12, -71.71)
CIE-LCHlch(26.89, 85.80, 303.31°)
OKLaboklab(39% 0.0051 -0.2076)
OKLCHoklch(39% 0.208 271.4)
XYZxyz(9.4953, 5.0556, 42.0619)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727B1 #B1B127
analogous
#276CB1 #2727B1 #6C27B1
triadic
#2727B1 #B12727 #27B127
tetradic
#2727B1 #B1276C #B1B127 #27B16C
square
#2727B1 #B1276C #B1B127 #27B16C
split-complementary
#2727B1 #B16C27 #6CB127
monochromatic
#11114D #1C1C7F #2727B1 #4040D5 #7272E0

Accessibility & contrast

On white

10.44
#2727B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2727B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727B1
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727B1#FFFFFF#000000##FFFFFF
##2727B11.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B5
Deuteranopia (green-blind)
#0038AF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2727b1;
/* rgb */ color: rgb(39, 39, 177);
/* oklch */ color: oklch(39.0% 0.208 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a64ca',
    500: '#2727b1',
    950: '#000000',
  },
}
SCSS
$custom: #2727b1;
$custom-light: #7a64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2727b1",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 240,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39002,
    "c": 0.20766,
    "h": 271.4
  },
  "luminance": 0.05057
}

Semantic roles & 50–950 ramp

primary
#2727B1
secondary
#C7C76D
accent
#E741E7
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2727B1

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

Preview Lab → · Contrast checker → · Palette generator →

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