#2B51AA#2B51AA

#2B51AA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.150 H 264.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2B51AA
RGBrgb(43, 81, 170)
HSLhsl(222, 60%, 42%)
HSVhsv(222, 75%, 67%)
CMYKcmyk(74.7%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.55, 18.54, -51.70)
CIE-LCHlch(36.55, 54.92, 289.73°)
OKLaboklab(45.96% -0.0156 -0.1487)
OKLCHoklch(45.96% 0.15 264)
XYZxyz(11.1918, 9.2995, 39.2276)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B51AA #AA842B
analogous
#2B91AA #2B51AA #452BAA
triadic
#2B51AA #AA2B51 #51AA2B
tetradic
#2B51AA #AA2B91 #AA842B #2BAA45
square
#2B51AA #AA2B91 #AA842B #2BAA45
split-complementary
#2B51AA #AA452B #91AA2B
monochromatic
#122248 #1F3A79 #2B51AA #436DCF #7493DC

Accessibility & contrast

On white

7.34
#2B51AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2B51AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B51AA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B51AA#FFFFFF#000000##FFFFFF
##2B51AA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165CAD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2b51aa;
/* rgb */ color: rgb(43, 81, 170);
/* oklch */ color: oklch(46.0% 0.150 264.0);
Tailwind
colors: {
  custom: {
    50: '#7681c4',
    500: '#2b51aa',
    950: '#000000',
  },
}
SCSS
$custom: #2b51aa;
$custom-light: #7681c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b51aa",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 222.047,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45957,
    "c": 0.14957,
    "h": 264
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

primary
#2B51AA
secondary
#C3AA6E
accent
#B445E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2B51AA

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

Preview Lab → · Contrast checker → · Palette generator →

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