#2731AA#2731AA

#2731AA is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.189 H 270.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2731AA
RGBrgb(39, 49, 170)
HSLhsl(235, 63%, 41%)
HSVhsv(235, 77%, 67%)
CMYKcmyk(77.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.19, 38.99, -65.36)
CIE-LCHlch(28.19, 76.11, 300.82°)
OKLaboklab(39.71% 0.0021 -0.1892)
OKLCHoklch(39.71% 0.189 270.6)
XYZxyz(9.1882, 5.5292, 38.6054)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2731AA #AAA027
analogous
#2772AA #2731AA #5E27AA
triadic
#2731AA #AA2731 #31AA27
tetradic
#2731AA #AA2772 #AAA027 #27AA5E
square
#2731AA #AA2772 #AAA027 #27AA5E
split-complementary
#2731AA #AA5E27 #72AA27
monochromatic
#101446 #1C2378 #2731AA #3C47D2 #6E76DE

Accessibility & contrast

On white

9.97
#2731AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2731AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2731AA#FFFFFF#000000##FFFFFF
##2731AA1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2731aa;
/* rgb */ color: rgb(39, 49, 170);
/* oklch */ color: oklch(39.7% 0.189 270.6);
Tailwind
colors: {
  custom: {
    50: '#776ac4',
    500: '#2731aa',
    950: '#000000',
  },
}
SCSS
$custom: #2731aa;
$custom-light: #776ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2731aa",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 235.42,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39706,
    "c": 0.18923,
    "h": 270.6
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#2731AA
secondary
#C4BD69
accent
#D942E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2731AA

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

Preview Lab → · Contrast checker → · Palette generator →

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