#2731A6#2731A6

#2731A6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.184 H 270.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2731A6
RGBrgb(39, 49, 166)
HSLhsl(235, 62%, 40%)
HSVhsv(235, 77%, 65%)
CMYKcmyk(76.5%, 70.5%, 0%, 34.9%)
CIE-LABlab(27.79, 37.57, -63.61)
CIE-LCHlch(27.79, 73.88, 300.57°)
OKLaboklab(39.3% 0.0026 -0.1841)
OKLCHoklch(39.3% 0.184 270.8)
XYZxyz(8.8156, 5.3802, 36.6429)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2731A6 #A69C27
analogous
#2770A6 #2731A6 #5D27A6
triadic
#2731A6 #A62731 #31A627
tetradic
#2731A6 #A62770 #A69C27 #27A65D
square
#2731A6 #A62770 #A69C27 #27A65D
split-complementary
#2731A6 #A65D27 #70A627
monochromatic
#101443 #1B2274 #2731A6 #3A45D1 #6B74DC

Accessibility & contrast

On white

10.11
#2731A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2731A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2731A6
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2731A6#FFFFFF#000000##FFFFFF
##2731A61.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2731a6;
/* rgb */ color: rgb(39, 49, 166);
/* oklch */ color: oklch(39.3% 0.184 270.8);
Tailwind
colors: {
  custom: {
    50: '#766ac2',
    500: '#2731a6',
    950: '#000000',
  },
}
SCSS
$custom: #2731a6;
$custom-light: #766ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2731a6",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 235.276,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39296,
    "c": 0.18414,
    "h": 270.8
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#2731A6
secondary
#C3BB66
accent
#D843E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2731A6

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

Preview Lab → · Contrast checker → · Palette generator →

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