#2A51AE#2A51AE

#2A51AE is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.155 H 264.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2A51AE
RGBrgb(42, 81, 174)
HSLhsl(222, 61%, 42%)
HSVhsv(222, 76%, 68%)
CMYKcmyk(75.9%, 53.4%, 0%, 31.8%)
CIE-LABlab(36.80, 19.95, -53.68)
CIE-LCHlch(36.80, 57.26, 290.39°)
OKLaboklab(46.23% -0.016 -0.1546)
OKLCHoklch(46.23% 0.155 264.1)
XYZxyz(11.5345, 9.4318, 41.2488)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51AE #AE872A
analogous
#2A93AE #2A51AE #452AAE
triadic
#2A51AE #AE2A51 #51AE2A
tetradic
#2A51AE #AE2A93 #AE872A #2AAE45
square
#2A51AE #AE2A93 #AE872A #2AAE45
split-complementary
#2A51AE #AE452A #93AE2A
monochromatic
#12234B #1E3A7D #2A51AE #436DD2 #7594DE

Accessibility & contrast

On white

7.27
#2A51AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A51AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51AE
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51AE#FFFFFF#000000##FFFFFF
##2A51AE1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5DB1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a51ae;
/* rgb */ color: rgb(42, 81, 174);
/* oklch */ color: oklch(46.2% 0.155 264.1);
Tailwind
colors: {
  custom: {
    50: '#7781c7',
    500: '#2a51ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a51ae;
$custom-light: #7781c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51ae",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 222.273,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46226,
    "c": 0.1554,
    "h": 264.1
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#2A51AE
secondary
#C5AC6F
accent
#B544E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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