#2731AD#2731AD

#2731AD is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.193 H 270.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2731AD
RGBrgb(39, 49, 173)
HSLhsl(236, 63%, 42%)
HSVhsv(236, 77%, 68%)
CMYKcmyk(77.5%, 71.7%, 0%, 32.2%)
CIE-LABlab(28.50, 40.05, -66.66)
CIE-LCHlch(28.50, 77.77, 301.00°)
OKLaboklab(40.02% 0.0017 -0.193)
OKLCHoklch(40.02% 0.193 270.5)
XYZxyz(9.4753, 5.6440, 40.1171)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2731AD #ADA327
analogous
#2774AD #2731AD #6027AD
triadic
#2731AD #AD2731 #31AD27
tetradic
#2731AD #AD2774 #ADA327 #27AD60
square
#2731AD #AD2774 #ADA327 #27AD60
split-complementary
#2731AD #AD6027 #74AD27
monochromatic
#101549 #1C237B #2731AD #3E49D3 #7078DF

Accessibility & contrast

On white

9.86
#2731AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2731AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2731AD#FFFFFF#000000##FFFFFF
##2731AD1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2731ad;
/* rgb */ color: rgb(39, 49, 173);
/* oklch */ color: oklch(40.0% 0.193 270.5);
Tailwind
colors: {
  custom: {
    50: '#786ac7',
    500: '#2731ad',
    950: '#000000',
  },
}
SCSS
$custom: #2731ad;
$custom-light: #786ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2731ad",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 235.522,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.19302,
    "h": 270.5
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#2731AD
secondary
#C6BF6A
accent
#DA42E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2731AD

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

Preview Lab → · Contrast checker → · Palette generator →

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