#2A51AA#2A51AA

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

Color values

HEX#2A51AA
RGBrgb(42, 81, 170)
HSLhsl(222, 60%, 42%)
HSVhsv(222, 75%, 67%)
CMYKcmyk(75.3%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.51, 18.41, -51.77)
CIE-LCHlch(36.51, 54.94, 289.58°)
OKLaboklab(45.92% -0.0164 -0.149)
OKLCHoklch(45.92% 0.15 263.7)
XYZxyz(11.1504, 9.2781, 39.2256)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51AA #AA832A
analogous
#2A91AA #2A51AA #432AAA
triadic
#2A51AA #AA2A51 #51AA2A
tetradic
#2A51AA #AA2A91 #AA832A #2AAA43
square
#2A51AA #AA2A91 #AA832A #2AAA43
split-complementary
#2A51AA #AA432A #91AA2A
monochromatic
#122248 #1E3A79 #2A51AA #416DD0 #7292DC

Accessibility & contrast

On white

7.35
#2A51AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A51AA
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51AA#FFFFFF#000000##FFFFFF
##2A51AA1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.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: #2a51aa;
/* rgb */ color: rgb(42, 81, 170);
/* oklch */ color: oklch(45.9% 0.150 263.7);
Tailwind
colors: {
  custom: {
    50: '#7681c4',
    500: '#2a51aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a51aa;
$custom-light: #7681c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51aa",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 221.719,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.14987,
    "h": 263.7
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#2A51AA
secondary
#C3A96C
accent
#B344E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A51AA

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

Preview Lab → · Contrast checker → · Palette generator →

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