#2A51AC#2A51AC

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

Color values

HEX#2A51AC
RGBrgb(42, 81, 172)
HSLhsl(222, 61%, 42%)
HSVhsv(222, 76%, 67%)
CMYKcmyk(75.6%, 52.9%, 0%, 32.5%)
CIE-LABlab(36.66, 19.18, -52.72)
CIE-LCHlch(36.66, 56.10, 289.99°)
OKLaboklab(46.07% -0.0162 -0.1518)
OKLCHoklch(46.07% 0.153 263.9)
XYZxyz(11.3410, 9.3544, 40.2296)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51AC #AC852A
analogous
#2A92AC #2A51AC #442AAC
triadic
#2A51AC #AC2A51 #51AC2A
tetradic
#2A51AC #AC2A92 #AC852A #2AAC44
square
#2A51AC #AC2A92 #AC852A #2AAC44
split-complementary
#2A51AC #AC442A #92AC2A
monochromatic
#12234A #1E3A7B #2A51AC #426DD1 #7393DD

Accessibility & contrast

On white

7.31
#2A51AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2A51AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51AC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51AC#FFFFFF#000000##FFFFFF
##2A51AC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115DAF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a51ac;
/* rgb */ color: rgb(42, 81, 172);
/* oklch */ color: oklch(46.1% 0.153 263.9);
Tailwind
colors: {
  custom: {
    50: '#7681c5',
    500: '#2a51ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a51ac;
$custom-light: #7681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51ac",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 222,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4607,
    "c": 0.15264,
    "h": 263.9
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A51AC

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

Preview Lab → · Contrast checker → · Palette generator →

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