#2A51AD#2A51AD

#2A51AD is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.154 H 264.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2A51AD
RGBrgb(42, 81, 173)
HSLhsl(222, 61%, 42%)
HSVhsv(222, 76%, 68%)
CMYKcmyk(75.7%, 53.2%, 0%, 32.2%)
CIE-LABlab(36.73, 19.56, -53.20)
CIE-LCHlch(36.73, 56.68, 290.19°)
OKLaboklab(46.15% -0.0161 -0.1532)
OKLCHoklch(46.15% 0.154 264)
XYZxyz(11.4374, 9.3930, 40.7373)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51AD #AD862A
analogous
#2A93AD #2A51AD #442AAD
triadic
#2A51AD #AD2A51 #51AD2A
tetradic
#2A51AD #AD2A93 #AD862A #2AAD44
square
#2A51AD #AD2A93 #AD862A #2AAD44
split-complementary
#2A51AD #AD442A #93AD2A
monochromatic
#12234B #1E3A7C #2A51AD #436DD1 #7493DD

Accessibility & contrast

On white

7.29
#2A51AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2A51AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51AD
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51AD#FFFFFF#000000##FFFFFF
##2A51AD1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5DB0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a51ad;
/* rgb */ color: rgb(42, 81, 173);
/* oklch */ color: oklch(46.1% 0.154 264.0);
Tailwind
colors: {
  custom: {
    50: '#7781c6',
    500: '#2a51ad',
    950: '#000000',
  },
}
SCSS
$custom: #2a51ad;
$custom-light: #7781c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51ad",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 222.137,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46148,
    "c": 0.15403,
    "h": 264
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#2A51AD
secondary
#C5AB6E
accent
#B444E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A51AD

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

Preview Lab → · Contrast checker → · Palette generator →

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