#2A5DA7#2A5DA7

#2A5DA7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.3% C 0.131 H 258.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2A5DA7
RGBrgb(42, 93, 167)
HSLhsl(216, 60%, 41%)
HSVhsv(216, 75%, 65%)
CMYKcmyk(74.9%, 44.3%, 0%, 34.5%)
CIE-LABlab(39.76, 9.36, -44.75)
CIE-LCHlch(39.76, 45.72, 281.81°)
OKLaboklab(48.35% -0.0272 -0.1281)
OKLCHoklch(48.35% 0.131 258)
XYZxyz(11.8417, 11.1096, 38.0720)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DA7 #A7742A
analogous
#2A9BA7 #2A5DA7 #352AA7
triadic
#2A5DA7 #A72A5D #5DA72A
tetradic
#2A5DA7 #A72A9B #A7742A #2AA735
square
#2A5DA7 #A72A9B #A7742A #2AA735
split-complementary
#2A5DA7 #A7352A #9BA72A
monochromatic
#112745 #1E4276 #2A5DA7 #3F7ACF #709CDB

Accessibility & contrast

On white

6.52
#2A5DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2A5DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DA7
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DA7#FFFFFF#000000##FFFFFF
##2A5DA71.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AA
Deuteranopia (green-blind)
#2058A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5da7;
/* rgb */ color: rgb(42, 93, 167);
/* oklch */ color: oklch(48.3% 0.131 258.0);
Tailwind
colors: {
  custom: {
    50: '#758ac1',
    500: '#2a5da7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5da7;
$custom-light: #758ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5da7",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 167
  },
  "hsl": {
    "h": 215.52,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48345,
    "c": 0.13097,
    "h": 258
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#2A5DA7
secondary
#C29E6B
accent
#A245E3
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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