#2751B2#2751B2

#2751B2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.162 H 263.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2751B2
RGBrgb(39, 81, 178)
HSLhsl(222, 64%, 43%)
HSVhsv(222, 78%, 70%)
CMYKcmyk(78.1%, 54.5%, 0%, 30.2%)
CIE-LABlab(36.98, 21.14, -55.75)
CIE-LCHlch(36.98, 59.63, 290.76°)
OKLaboklab(46.43% -0.0179 -0.1607)
OKLCHoklch(46.43% 0.162 263.6)
XYZxyz(11.8121, 9.5292, 43.3276)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2751B2 #B28827
analogous
#2796B2 #2751B2 #4327B2
triadic
#2751B2 #B22751 #51B227
tetradic
#2751B2 #B22796 #B28827 #27B243
square
#2751B2 #B22796 #B28827 #27B243
split-complementary
#2751B2 #B24327 #96B227
monochromatic
#11234E #1C3A80 #2751B2 #416ED5 #7394E0

Accessibility & contrast

On white

7.23
#2751B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2751B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2751B2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2751B2#FFFFFF#000000##FFFFFF
##2751B21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2751b2;
/* rgb */ color: rgb(39, 81, 178);
/* oklch */ color: oklch(46.4% 0.162 263.6);
Tailwind
colors: {
  custom: {
    50: '#7781ca',
    500: '#2751b2',
    950: '#000000',
  },
}
SCSS
$custom: #2751b2;
$custom-light: #7781ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2751b2",
  "rgb": {
    "r": 39,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 221.871,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.16174,
    "h": 263.6
  },
  "luminance": 0.09531
}

Semantic roles & 50–950 ramp

primary
#2751B2
secondary
#C8AC6D
accent
#B541E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2751B2

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

Preview Lab → · Contrast checker → · Palette generator →

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