#2A51A2#2A51A2

#2A51A2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.139 H 262.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2A51A2
RGBrgb(42, 81, 162)
HSLhsl(221, 59%, 40%)
HSVhsv(221, 74%, 64%)
CMYKcmyk(74.1%, 50%, 0%, 36.5%)
CIE-LABlab(35.95, 15.33, -47.90)
CIE-LCHlch(35.95, 50.29, 287.75°)
OKLaboklab(45.31% -0.0174 -0.1376)
OKLCHoklch(45.31% 0.139 262.8)
XYZxyz(10.4165, 8.9846, 35.3606)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51A2 #A27B2A
analogous
#2A8DA2 #2A51A2 #3F2AA2
triadic
#2A51A2 #A22A51 #51A22A
tetradic
#2A51A2 #A22A8D #A27B2A #2AA23F
square
#2A51A2 #A22A8D #A27B2A #2AA23F
split-complementary
#2A51A2 #A23F2A #8DA22A
monochromatic
#112041 #1D3971 #2A51A2 #3D6BCD #6D90D9

Accessibility & contrast

On white

7.51
#2A51A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A51A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51A2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51A2#FFFFFF#000000##FFFFFF
##2A51A21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a51a2;
/* rgb */ color: rgb(42, 81, 162);
/* oklch */ color: oklch(45.3% 0.139 262.8);
Tailwind
colors: {
  custom: {
    50: '#7481be',
    500: '#2a51a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a51a2;
$custom-light: #7481be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51a2",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 220.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4531,
    "c": 0.13867,
    "h": 262.8
  },
  "luminance": 0.08986
}

Semantic roles & 50–950 ramp

primary
#2A51A2
secondary
#C0A368
accent
#AF46E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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