#2A5699#2A5699

#2A5699 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 45.8% C 0.120 H 258.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5699
RGBrgb(42, 86, 153)
HSLhsl(216, 57%, 38%)
HSVhsv(216, 73%, 60%)
CMYKcmyk(72.5%, 43.8%, 0%, 40%)
CIE-LABlab(36.83, 8.56, -41.08)
CIE-LCHlch(36.83, 41.97, 281.77°)
OKLaboklab(45.8% -0.0235 -0.1174)
OKLCHoklch(45.8% 0.12 258.7)
XYZxyz(10.0303, 9.4467, 31.4256)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5699 #996D2A
analogous
#2A8D99 #2A5699 #352A99
triadic
#2A5699 #992A56 #56992A
tetradic
#2A5699 #992A8D #996D2A #2A9935
square
#2A5699 #992A8D #996D2A #2A9935
split-complementary
#2A5699 #99352A #8D992A
monochromatic
#102039 #1D3B69 #2A5699 #3871C8 #6893D6

Accessibility & contrast

On white

7.27
#2A5699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A5699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5699
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5699#FFFFFF#000000##FFFFFF
##2A56991.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355C9C
Deuteranopia (green-blind)
#225298
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a5699;
/* rgb */ color: rgb(42, 86, 153);
/* oklch */ color: oklch(45.8% 0.120 258.7);
Tailwind
colors: {
  custom: {
    50: '#7285b7',
    500: '#2a5699',
    950: '#000000',
  },
}
SCSS
$custom: #2a5699;
$custom-light: #7285b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5699",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 153
  },
  "hsl": {
    "h": 216.216,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.11978,
    "h": 258.7
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#2A5699
secondary
#BC9963
accent
#A448E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5699

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

Preview Lab → · Contrast checker → · Palette generator →

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