#2727A3#2727A3

#2727A3 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.191 H 272.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2727A3
RGBrgb(39, 39, 163)
HSLhsl(240, 61%, 40%)
HSVhsv(240, 76%, 64%)
CMYKcmyk(76.1%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.34, 42.49, -65.84)
CIE-LCHlch(25.34, 78.36, 302.83°)
OKLaboklab(37.45% 0.0078 -0.1906)
OKLCHoklch(37.45% 0.191 272.3)
XYZxyz(8.1709, 4.5259, 35.0862)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727A3 #A3A327
analogous
#2765A3 #2727A3 #6527A3
triadic
#2727A3 #A32727 #27A327
tetradic
#2727A3 #A32765 #A3A327 #27A365
square
#2727A3 #A32765 #A3A327 #27A365
split-complementary
#2727A3 #A36527 #65A327
monochromatic
#0F0F40 #1B1B72 #2727A3 #3838CF #6969DB

Accessibility & contrast

On white

11.02
#2727A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2727A3
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727A3#FFFFFF#000000##FFFFFF
##2727A31.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0036A1
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2727a3;
/* rgb */ color: rgb(39, 39, 163);
/* oklch */ color: oklch(37.5% 0.191 272.3);
Tailwind
colors: {
  custom: {
    50: '#7763c0',
    500: '#2727a3',
    950: '#000000',
  },
}
SCSS
$custom: #2727a3;
$custom-light: #7763c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2727a3",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 240,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.19073,
    "h": 272.3
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#2727A3
secondary
#C1C164
accent
#E443E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2727A3

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

Preview Lab → · Contrast checker → · Palette generator →

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