#2A5CAC#2A5CAC

#2A5CAC is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.139 H 259.5°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#2A5CAC
RGBrgb(42, 92, 172)
HSLhsl(217, 61%, 42%)
HSVhsv(217, 76%, 67%)
CMYKcmyk(75.6%, 46.5%, 0%, 32.5%)
CIE-LABlab(39.79, 11.93, -47.68)
CIE-LCHlch(39.79, 49.15, 284.05°)
OKLaboklab(48.46% -0.0254 -0.1367)
OKLCHoklch(48.46% 0.139 259.5)
XYZxyz(12.2257, 11.1237, 40.5245)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CAC #AC7A2A
analogous
#2A9DAC #2A5CAC #392AAC
triadic
#2A5CAC #AC2A5C #5CAC2A
tetradic
#2A5CAC #AC2A9D #AC7A2A #2AAC39
square
#2A5CAC #AC2A9D #AC7A2A #2AAC39
split-complementary
#2A5CAC #AC392A #9DAC2A
monochromatic
#12274A #1E427B #2A5CAC #4279D1 #739CDD

Accessibility & contrast

On white

6.51
#2A5CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2A5CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CAC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CAC#FFFFFF#000000##FFFFFF
##2A5CAC1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AF
Deuteranopia (green-blind)
#1358AA
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5cac;
/* rgb */ color: rgb(42, 92, 172);
/* oklch */ color: oklch(48.5% 0.139 259.5);
Tailwind
colors: {
  custom: {
    50: '#7689c5',
    500: '#2a5cac',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cac;
$custom-light: #7689c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cac",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 216.923,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48464,
    "c": 0.13907,
    "h": 259.5
  },
  "luminance": 0.11125
}

Semantic roles & 50–950 ramp

primary
#2A5CAC
secondary
#C4A36D
accent
#A644E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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