#2A52AF#2A52AF

#2A52AF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.156 H 263.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2A52AF
RGBrgb(42, 82, 175)
HSLhsl(222, 61%, 43%)
HSVhsv(222, 76%, 69%)
CMYKcmyk(76%, 53.1%, 0%, 31.4%)
CIE-LABlab(37.15, 19.67, -53.70)
CIE-LCHlch(37.15, 57.19, 290.12°)
OKLaboklab(46.51% -0.0167 -0.1546)
OKLCHoklch(46.51% 0.156 263.8)
XYZxyz(11.7073, 9.6207, 41.7891)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52AF #AF872A
analogous
#2A94AF #2A52AF #452AAF
triadic
#2A52AF #AF2A52 #52AF2A
tetradic
#2A52AF #AF2A94 #AF872A #2AAF45
square
#2A52AF #AF2A94 #AF872A #2AAF45
split-complementary
#2A52AF #AF452A #94AF2A
monochromatic
#12244C #1E3B7E #2A52AF #446FD2 #7595DE

Accessibility & contrast

On white

7.18
#2A52AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2A52AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52AF
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52AF#FFFFFF#000000##FFFFFF
##2A52AF1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5EB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a52af;
/* rgb */ color: rgb(42, 82, 175);
/* oklch */ color: oklch(46.5% 0.156 263.8);
Tailwind
colors: {
  custom: {
    50: '#7782c8',
    500: '#2a52af',
    950: '#000000',
  },
}
SCSS
$custom: #2a52af;
$custom-light: #7782c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52af",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 221.955,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.15554,
    "h": 263.8
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#2A52AF
secondary
#C6AC6F
accent
#B443E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52AF

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

Preview Lab → · Contrast checker → · Palette generator →

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