#2B51B3#2B51B3

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

Color values

HEX#2B51B3
RGBrgb(43, 81, 179)
HSLhsl(223, 61%, 44%)
HSVhsv(223, 76%, 70%)
CMYKcmyk(76%, 54.7%, 0%, 29.8%)
CIE-LABlab(37.21, 21.98, -55.97)
CIE-LCHlch(37.21, 60.13, 291.44°)
OKLaboklab(46.66% -0.0148 -0.1613)
OKLCHoklch(46.66% 0.162 264.8)
XYZxyz(12.0725, 9.6518, 43.8658)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B51B3 #B38D2B
analogous
#2B95B3 #2B51B3 #492BB3
triadic
#2B51B3 #B32B51 #51B32B
tetradic
#2B51B3 #B32B95 #B38D2B #2BB349
square
#2B51B3 #B32B95 #B38D2B #2BB349
split-complementary
#2B51B3 #B3492B #95B32B
monochromatic
#132450 #1F3B82 #2B51B3 #486FD3 #7996DF

Accessibility & contrast

On white

7.17
#2B51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2B51B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B51B3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B51B3#FFFFFF#000000##FFFFFF
##2B51B31.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)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2b51b3;
/* rgb */ color: rgb(43, 81, 179);
/* oklch */ color: oklch(46.7% 0.162 264.8);
Tailwind
colors: {
  custom: {
    50: '#7881ca',
    500: '#2b51b3',
    950: '#000000',
  },
}
SCSS
$custom: #2b51b3;
$custom-light: #7881ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b51b3",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 223.235,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46662,
    "c": 0.16199,
    "h": 264.8
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

primary
#2B51B3
secondary
#C7AF73
accent
#B743E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2B51B3

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

Preview Lab → · Contrast checker → · Palette generator →

#2B51B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva