#2751B5#2751B5

#2751B5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.166 H 263.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2751B5
RGBrgb(39, 81, 181)
HSLhsl(222, 65%, 43%)
HSVhsv(222, 78%, 71%)
CMYKcmyk(78.5%, 55.2%, 0%, 29%)
CIE-LABlab(37.21, 22.30, -57.16)
CIE-LCHlch(37.21, 61.35, 291.31°)
OKLaboklab(46.67% -0.0176 -0.1649)
OKLCHoklch(46.67% 0.166 263.9)
XYZxyz(12.1166, 9.6510, 44.9313)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2751B5 #B58B27
analogous
#2798B5 #2751B5 #4427B5
triadic
#2751B5 #B52751 #51B527
tetradic
#2751B5 #B52798 #B58B27 #27B544
square
#2751B5 #B52798 #B58B27 #27B544
split-complementary
#2751B5 #B54427 #98B527
monochromatic
#112450 #1C3A83 #2751B5 #436ED6 #7595E1

Accessibility & contrast

On white

7.17
#2751B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2751B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2751B5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2751B5#FFFFFF#000000##FFFFFF
##2751B51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2751b5;
/* rgb */ color: rgb(39, 81, 181);
/* oklch */ color: oklch(46.7% 0.166 263.9);
Tailwind
colors: {
  custom: {
    50: '#7781cc',
    500: '#2751b5',
    950: '#000000',
  },
}
SCSS
$custom: #2751b5;
$custom-light: #7781cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2751b5",
  "rgb": {
    "r": 39,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 222.254,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46666,
    "c": 0.16582,
    "h": 263.9
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#2751B5
secondary
#C9AE6F
accent
#B640E8
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2751B5

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

Preview Lab → · Contrast checker → · Palette generator →

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