#2727A5#2727A5

#2727A5 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.193 H 272.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2727A5
RGBrgb(39, 39, 165)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 76%, 65%)
CMYKcmyk(76.4%, 76.4%, 0%, 35.3%)
CIE-LABlab(25.56, 43.16, -66.69)
CIE-LCHlch(25.56, 79.44, 302.91°)
OKLaboklab(37.67% 0.0074 -0.193)
OKLCHoklch(37.67% 0.193 272.2)
XYZxyz(8.3515, 4.5981, 36.0374)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727A5 #A5A527
analogous
#2766A5 #2727A5 #6627A5
triadic
#2727A5 #A52727 #27A527
tetradic
#2727A5 #A52766 #A5A527 #27A566
square
#2727A5 #A52766 #A5A527 #27A566
split-complementary
#2727A5 #A56627 #66A527
monochromatic
#101042 #1B1B74 #2727A5 #3939D0 #6A6ADC

Accessibility & contrast

On white

10.94
#2727A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2727A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727A5
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727A5#FFFFFF#000000##FFFFFF
##2727A51.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0036A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2727a5;
/* rgb */ color: rgb(39, 39, 165);
/* oklch */ color: oklch(37.7% 0.193 272.2);
Tailwind
colors: {
  custom: {
    50: '#7763c1',
    500: '#2727a5',
    950: '#000000',
  },
}
SCSS
$custom: #2727a5;
$custom-light: #7763c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2727a5",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.37669,
    "c": 0.19318,
    "h": 272.2
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#2727A5
secondary
#C2C266
accent
#E543E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2727A5

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

Preview Lab → · Contrast checker → · Palette generator →

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