#2751AB#2751AB

#2751AB is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.152 H 263.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2751AB
RGBrgb(39, 81, 171)
HSLhsl(221, 63%, 41%)
HSVhsv(221, 77%, 67%)
CMYKcmyk(77.2%, 52.6%, 0%, 32.9%)
CIE-LABlab(36.47, 18.43, -52.44)
CIE-LCHlch(36.47, 55.58, 289.36°)
OKLaboklab(45.87% -0.0186 -0.151)
OKLCHoklch(45.87% 0.152 263)
XYZxyz(11.1272, 9.2552, 39.7202)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2751AB #AB8127
analogous
#2793AB #2751AB #3F27AB
triadic
#2751AB #AB2751 #51AB27
tetradic
#2751AB #AB2793 #AB8127 #27AB3F
square
#2751AB #AB2793 #AB8127 #27AB3F
split-complementary
#2751AB #AB3F27 #93AB27
monochromatic
#102247 #1C3979 #2751AB #3D6CD3 #6E92DE

Accessibility & contrast

On white

7.37
#2751AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2751AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2751AB
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2751AB#FFFFFF#000000##FFFFFF
##2751AB1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2751ab;
/* rgb */ color: rgb(39, 81, 171);
/* oklch */ color: oklch(45.9% 0.152 263.0);
Tailwind
colors: {
  custom: {
    50: '#7581c5',
    500: '#2751ab',
    950: '#000000',
  },
}
SCSS
$custom: #2751ab;
$custom-light: #7581c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2751ab",
  "rgb": {
    "r": 39,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 220.909,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.15213,
    "h": 263
  },
  "luminance": 0.09256
}

Semantic roles & 50–950 ramp

primary
#2751AB
secondary
#C5A869
accent
#B242E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2751AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2751AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva