#2731A2#2731A2

#2731A2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.179 H 271.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2731A2
RGBrgb(39, 49, 162)
HSLhsl(235, 61%, 39%)
HSVhsv(235, 76%, 64%)
CMYKcmyk(75.9%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.40, 36.14, -61.84)
CIE-LCHlch(27.40, 71.63, 300.30°)
OKLaboklab(38.89% 0.003 -0.179)
OKLCHoklch(38.89% 0.179 271)
XYZxyz(8.4544, 5.2357, 34.7404)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2731A2 #A29827
analogous
#276FA2 #2731A2 #5B27A2
triadic
#2731A2 #A22731 #31A227
tetradic
#2731A2 #A2276F #A29827 #27A25B
square
#2731A2 #A2276F #A29827 #27A25B
split-complementary
#2731A2 #A25B27 #6FA227
monochromatic
#0F133F #1B2271 #2731A2 #3744CF #6972DB

Accessibility & contrast

On white

10.26
#2731A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2731A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2731A2
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2731A2#FFFFFF#000000##FFFFFF
##2731A21.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2731a2;
/* rgb */ color: rgb(39, 49, 162);
/* oklch */ color: oklch(38.9% 0.179 271.0);
Tailwind
colors: {
  custom: {
    50: '#7569bf',
    500: '#2731a2',
    950: '#000000',
  },
}
SCSS
$custom: #2731a2;
$custom-light: #7569bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2731a2",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 235.122,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38891,
    "c": 0.17899,
    "h": 271
  },
  "luminance": 0.05237
}

Semantic roles & 50–950 ramp

primary
#2731A2
secondary
#C1B964
accent
#D743E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2731A2

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

Preview Lab → · Contrast checker → · Palette generator →

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