#2731AE#2731AE

#2731AE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.194 H 270.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2731AE
RGBrgb(39, 49, 174)
HSLhsl(236, 63%, 42%)
HSVhsv(236, 78%, 68%)
CMYKcmyk(77.6%, 71.8%, 0%, 31.8%)
CIE-LABlab(28.60, 40.40, -67.09)
CIE-LCHlch(28.60, 78.32, 301.05°)
OKLaboklab(40.12% 0.0016 -0.1943)
OKLCHoklch(40.12% 0.194 270.5)
XYZxyz(9.5724, 5.6829, 40.6286)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2731AE #AEA427
analogous
#2774AE #2731AE #6127AE
triadic
#2731AE #AE2731 #31AE27
tetradic
#2731AE #AE2774 #AEA427 #27AE61
square
#2731AE #AE2774 #AEA427 #27AE61
split-complementary
#2731AE #AE6127 #74AE27
monochromatic
#11154A #1C237C #2731AE #3E49D4 #7079DF

Accessibility & contrast

On white

9.83
#2731AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2731AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2731AE
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2731AE#FFFFFF#000000##FFFFFF
##2731AE1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2731ae;
/* rgb */ color: rgb(39, 49, 174);
/* oklch */ color: oklch(40.1% 0.194 270.5);
Tailwind
colors: {
  custom: {
    50: '#786ac7',
    500: '#2731ae',
    950: '#000000',
  },
}
SCSS
$custom: #2731ae;
$custom-light: #786ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2731ae",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 235.556,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40119,
    "c": 0.19428,
    "h": 270.5
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#2731AE
secondary
#C6BF6B
accent
#DA41E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2731AE

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

Preview Lab → · Contrast checker → · Palette generator →

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