#2A5DAC#2A5DAC

#2A5DAC is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.138 H 259.0°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#2A5DAC
RGBrgb(42, 93, 172)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 76%, 67%)
CMYKcmyk(75.6%, 45.9%, 0%, 32.5%)
CIE-LABlab(40.08, 11.28, -47.21)
CIE-LCHlch(40.08, 48.54, 283.44°)
OKLaboklab(48.69% -0.0262 -0.1353)
OKLCHoklch(48.69% 0.138 259)
XYZxyz(12.3129, 11.2981, 40.5536)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DAC #AC792A
analogous
#2A9EAC #2A5DAC #382AAC
triadic
#2A5DAC #AC2A5D #5DAC2A
tetradic
#2A5DAC #AC2A9E #AC792A #2AAC38
square
#2A5DAC #AC2A9E #AC792A #2AAC38
split-complementary
#2A5DAC #AC382A #9EAC2A
monochromatic
#12284A #1E427B #2A5DAC #427AD1 #739DDD

Accessibility & contrast

On white

6.44
#2A5DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2A5DAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DAC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DAC#FFFFFF#000000##FFFFFF
##2A5DAC1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465AF
Deuteranopia (green-blind)
#1759AA
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5dac;
/* rgb */ color: rgb(42, 93, 172);
/* oklch */ color: oklch(48.7% 0.138 259.0);
Tailwind
colors: {
  custom: {
    50: '#768ac5',
    500: '#2a5dac',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dac;
$custom-light: #768ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dac",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 172
  },
  "hsl": {
    "h": 216.462,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.13786,
    "h": 259
  },
  "luminance": 0.11299
}

Semantic roles & 50–950 ramp

primary
#2A5DAC
secondary
#C4A26D
accent
#A544E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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