#2A51B7#2A51B7

#2A51B7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.168 H 264.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2A51B7
RGBrgb(42, 81, 183)
HSLhsl(223, 63%, 44%)
HSVhsv(223, 77%, 72%)
CMYKcmyk(77%, 55.7%, 0%, 28.2%)
CIE-LABlab(37.47, 23.39, -57.91)
CIE-LCHlch(37.47, 62.45, 292.00°)
OKLaboklab(46.94% -0.0153 -0.167)
OKLCHoklch(46.94% 0.168 264.8)
XYZxyz(12.4415, 9.7946, 46.0254)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51B7 #B7902A
analogous
#2A98B7 #2A51B7 #492AB7
triadic
#2A51B7 #B72A51 #51B72A
tetradic
#2A51B7 #B72A98 #B7902A #2AB749
square
#2A51B7 #B72A98 #B7902A #2AB749
split-complementary
#2A51B7 #B7492A #98B72A
monochromatic
#132553 #1F3B85 #2A51B7 #4970D5 #7B97E1

Accessibility & contrast

On white

7.10
#2A51B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A51B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51B7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51B7#FFFFFF#000000##FFFFFF
##2A51B71.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a51b7;
/* rgb */ color: rgb(42, 81, 183);
/* oklch */ color: oklch(46.9% 0.168 264.8);
Tailwind
colors: {
  custom: {
    50: '#7981cd',
    500: '#2a51b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a51b7;
$custom-light: #7981cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51b7",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 223.404,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46942,
    "c": 0.16773,
    "h": 264.8
  },
  "luminance": 0.09796
}

Semantic roles & 50–950 ramp

primary
#2A51B7
secondary
#C9B174
accent
#B842E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #2A51B7

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

Preview Lab → · Contrast checker → · Palette generator →

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