#2727A6#2727A6

#2727A6 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.194 H 272.1°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2727A6
RGBrgb(39, 39, 166)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 77%, 65%)
CMYKcmyk(76.5%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.67, 43.49, -67.12)
CIE-LCHlch(25.67, 79.98, 302.94°)
OKLaboklab(37.78% 0.0072 -0.1943)
OKLCHoklch(37.78% 0.194 272.1)
XYZxyz(8.4428, 4.6346, 36.5186)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2727A6 #A6A627
analogous
#2766A6 #2727A6 #6627A6
triadic
#2727A6 #A62727 #27A627
tetradic
#2727A6 #A62766 #A6A627 #27A666
square
#2727A6 #A62766 #A6A627 #27A666
split-complementary
#2727A6 #A66627 #66A627
monochromatic
#101043 #1B1B74 #2727A6 #3A3AD1 #6B6BDC

Accessibility & contrast

On white

10.90
#2727A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2727A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2727A6
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2727A6#FFFFFF#000000##FFFFFF
##2727A61.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2727a6;
/* rgb */ color: rgb(39, 39, 166);
/* oklch */ color: oklch(37.8% 0.194 272.1);
Tailwind
colors: {
  custom: {
    50: '#7763c2',
    500: '#2727a6',
    950: '#000000',
  },
}
SCSS
$custom: #2727a6;
$custom-light: #7763c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2727a6",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.19441,
    "h": 272.1
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#2727A6
secondary
#C3C366
accent
#E543E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2727A6

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

Preview Lab → · Contrast checker → · Palette generator →

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