#2727A4#2727A4

#2727A4 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.192 H 272.3°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2727A4
RGBrgb(39, 39, 164)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 76%, 64%)
CMYKcmyk(76.2%, 76.2%, 0%, 35.7%)
CIE-LABlab(25.45, 42.82, -66.27)
CIE-LCHlch(25.45, 78.90, 302.87°)
OKLaboklab(37.56% 0.0076 -0.1918)
OKLCHoklch(37.56% 0.192 272.3)
XYZxyz(8.2608, 4.5618, 35.5599)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727A4 #A4A427
analogous
#2766A4 #2727A4 #6627A4
triadic
#2727A4 #A42727 #27A427
tetradic
#2727A4 #A42766 #A4A427 #27A466
square
#2727A4 #A42766 #A4A427 #27A466
split-complementary
#2727A4 #A46627 #66A427
monochromatic
#0F0F41 #1B1B73 #2727A4 #3838D0 #6A6ADC

Accessibility & contrast

On white

10.98
#2727A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2727A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727A4
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727A4#FFFFFF#000000##FFFFFF
##2727A41.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2727a4;
/* rgb */ color: rgb(39, 39, 164);
/* oklch */ color: oklch(37.6% 0.192 272.3);
Tailwind
colors: {
  custom: {
    50: '#7763c0',
    500: '#2727a4',
    950: '#000000',
  },
}
SCSS
$custom: #2727a4;
$custom-light: #7763c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2727a4",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 240,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37559,
    "c": 0.19196,
    "h": 272.3
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#2727A4
secondary
#C2C265
accent
#E543E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2727A4

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

Preview Lab → · Contrast checker → · Palette generator →

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