#2A5BAC#2A5BAC

#2A5BAC is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.140 H 259.9°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#2A5BAC
RGBrgb(42, 91, 172)
HSLhsl(217, 61%, 42%)
HSVhsv(217, 76%, 67%)
CMYKcmyk(75.6%, 47.1%, 0%, 32.5%)
CIE-LABlab(39.50, 12.58, -48.14)
CIE-LCHlch(39.50, 49.76, 284.65°)
OKLaboklab(48.24% -0.0245 -0.1381)
OKLCHoklch(48.24% 0.14 259.9)
XYZxyz(12.1396, 10.9516, 40.4958)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BAC #AC7B2A
analogous
#2A9CAC #2A5BAC #3A2AAC
triadic
#2A5BAC #AC2A5B #5BAC2A
tetradic
#2A5BAC #AC2A9C #AC7B2A #2AAC3A
square
#2A5BAC #AC2A9C #AC7B2A #2AAC3A
split-complementary
#2A5BAC #AC3A2A #9CAC2A
monochromatic
#12274A #1E417B #2A5BAC #4278D1 #739BDD

Accessibility & contrast

On white

6.58
#2A5BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2A5BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BAC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BAC#FFFFFF#000000##FFFFFF
##2A5BAC1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AF
Deuteranopia (green-blind)
#0E57AA
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5bac;
/* rgb */ color: rgb(42, 91, 172);
/* oklch */ color: oklch(48.2% 0.140 259.9);
Tailwind
colors: {
  custom: {
    50: '#7688c5',
    500: '#2a5bac',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bac;
$custom-light: #7688c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bac",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 172
  },
  "hsl": {
    "h": 217.385,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48242,
    "c": 0.14027,
    "h": 259.9
  },
  "luminance": 0.10953
}

Semantic roles & 50–950 ramp

primary
#2A5BAC
secondary
#C4A46D
accent
#A844E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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