#2727C1#2727C1

#2727C1 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.8% C 0.226 H 270.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2727C1
RGBrgb(39, 39, 193)
HSLhsl(240, 66%, 45%)
HSVhsv(240, 80%, 76%)
CMYKcmyk(79.8%, 79.8%, 0%, 24.3%)
CIE-LABlab(28.72, 52.24, -78.17)
CIE-LCHlch(28.72, 94.02, 303.75°)
OKLaboklab(40.82% 0.0018 -0.2263)
OKLCHoklch(40.82% 0.226 270.5)
XYZxyz(11.1846, 5.7313, 50.9585)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727C1 #C1C127
analogous
#2774C1 #2727C1 #7427C1
triadic
#2727C1 #C12727 #27C127
tetradic
#2727C1 #C12774 #C1C127 #27C174
square
#2727C1 #C12774 #C1C127 #27C174
split-complementary
#2727C1 #C17427 #74C127
monochromatic
#12125B #1D1D8E #2727C1 #4B4BDB #7E7EE5

Accessibility & contrast

On white

9.78
#2727C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2727C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727C1
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727C1#FFFFFF#000000##FFFFFF
##2727C11.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC5
Deuteranopia (green-blind)
#003CBE
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2727c1;
/* rgb */ color: rgb(39, 39, 193);
/* oklch */ color: oklch(40.8% 0.226 270.5);
Tailwind
colors: {
  custom: {
    50: '#7e65d5',
    500: '#2727c1',
    950: '#000000',
  },
}
SCSS
$custom: #2727c1;
$custom-light: #7e65d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2727c1",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 193
  },
  "hsl": {
    "h": 240,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.40817,
    "c": 0.22634,
    "h": 270.5
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#2727C1
secondary
#CDCD77
accent
#E93EE9
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2727C1

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

Preview Lab → · Contrast checker → · Palette generator →

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