#2751A2#2751A2

#2751A2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.140 H 261.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2751A2
RGBrgb(39, 81, 162)
HSLhsl(220, 61%, 39%)
HSVhsv(220, 76%, 64%)
CMYKcmyk(75.9%, 50%, 0%, 36.5%)
CIE-LABlab(35.84, 14.93, -48.09)
CIE-LCHlch(35.84, 50.36, 287.25°)
OKLaboklab(45.19% -0.0197 -0.1382)
OKLCHoklch(45.19% 0.14 261.9)
XYZxyz(10.2984, 8.9237, 35.3551)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2751A2 #A27827
analogous
#278FA2 #2751A2 #3A27A2
triadic
#2751A2 #A22751 #51A227
tetradic
#2751A2 #A2278F #A27827 #27A23A
square
#2751A2 #A2278F #A27827 #27A23A
split-complementary
#2751A2 #A23A27 #8FA227
monochromatic
#0F203F #1B3871 #2751A2 #376BCF #6990DB

Accessibility & contrast

On white

7.54
#2751A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2751A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2751A2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2751A2#FFFFFF#000000##FFFFFF
##2751A21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2751a2;
/* rgb */ color: rgb(39, 81, 162);
/* oklch */ color: oklch(45.2% 0.140 261.9);
Tailwind
colors: {
  custom: {
    50: '#7381be',
    500: '#2751a2',
    950: '#000000',
  },
}
SCSS
$custom: #2751a2;
$custom-light: #7381be;
$custom-dark: #000000;
JSON
{
  "hex": "#2751a2",
  "rgb": {
    "r": 39,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 219.512,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45188,
    "c": 0.1396,
    "h": 261.9
  },
  "luminance": 0.08925
}

Semantic roles & 50–950 ramp

primary
#2751A2
secondary
#C1A164
accent
#AD43E4
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2751A2

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

Preview Lab → · Contrast checker → · Palette generator →

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