#2751BA#2751BA

#2751BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.173 H 264.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2751BA
RGBrgb(39, 81, 186)
HSLhsl(223, 65%, 44%)
HSVhsv(223, 79%, 73%)
CMYKcmyk(79%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.59, 24.22, -59.48)
CIE-LCHlch(37.59, 64.22, 292.15°)
OKLaboklab(47.07% -0.0173 -0.1717)
OKLCHoklch(47.07% 0.173 264.2)
XYZxyz(12.6389, 9.8599, 47.6819)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2751BA #BA9027
analogous
#279BBA #2751BA #4727BA
triadic
#2751BA #BA2751 #51BA27
tetradic
#2751BA #BA279B #BA9027 #27BA47
square
#2751BA #BA279B #BA9027 #27BA47
split-complementary
#2751BA #BA4727 #9BBA27
monochromatic
#122555 #1C3B87 #2751BA #4670D8 #7997E3

Accessibility & contrast

On white

7.07
#2751BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2751BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2751BA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2751BA#FFFFFF#000000##FFFFFF
##2751BA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2751ba;
/* rgb */ color: rgb(39, 81, 186);
/* oklch */ color: oklch(47.1% 0.173 264.2);
Tailwind
colors: {
  custom: {
    50: '#7981d0',
    500: '#2751ba',
    950: '#000000',
  },
}
SCSS
$custom: #2751ba;
$custom-light: #7981d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2751ba",
  "rgb": {
    "r": 39,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 222.857,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47073,
    "c": 0.17258,
    "h": 264.2
  },
  "luminance": 0.09861
}

Semantic roles & 50–950 ramp

primary
#2751BA
secondary
#CBB172
accent
#B840E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2751BA

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

Preview Lab → · Contrast checker → · Palette generator →

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