#2A52A9#2A52A9

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

Color values

HEX#2A52A9
RGBrgb(42, 82, 169)
HSLhsl(221, 60%, 41%)
HSVhsv(221, 75%, 66%)
CMYKcmyk(75.1%, 51.5%, 0%, 33.7%)
CIE-LABlab(36.73, 17.36, -50.83)
CIE-LCHlch(36.73, 53.72, 288.86°)
OKLaboklab(46.05% -0.0173 -0.1462)
OKLCHoklch(46.05% 0.147 263.2)
XYZxyz(11.1310, 9.3902, 38.7543)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52A9 #A9812A
analogous
#2A92A9 #2A52A9 #412AA9
triadic
#2A52A9 #A92A52 #52A92A
tetradic
#2A52A9 #A92A92 #A9812A #2AA941
square
#2A52A9 #A92A92 #A9812A #2AA941
split-complementary
#2A52A9 #A9412A #92A92A
monochromatic
#122247 #1E3A78 #2A52A9 #416ED0 #7293DC

Accessibility & contrast

On white

7.30
#2A52A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2A52A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52A9
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52A9#FFFFFF#000000##FFFFFF
##2A52A91.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5DAC
Deuteranopia (green-blind)
#0051A7
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a52a9;
/* rgb */ color: rgb(42, 82, 169);
/* oklch */ color: oklch(46.1% 0.147 263.2);
Tailwind
colors: {
  custom: {
    50: '#7682c3',
    500: '#2a52a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a52a9;
$custom-light: #7682c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52a9",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 169
  },
  "hsl": {
    "h": 221.102,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46053,
    "c": 0.14722,
    "h": 263.2
  },
  "luminance": 0.09391
}

Semantic roles & 50–950 ramp

primary
#2A52A9
secondary
#C3A86C
accent
#B144E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A52A9

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

Preview Lab → · Contrast checker → · Palette generator →

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