#2A5A9F#2A5A9F

#2A5A9F is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.1% C 0.123 H 257.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2A5A9F
RGBrgb(42, 90, 159)
HSLhsl(215, 58%, 39%)
HSVhsv(215, 74%, 62%)
CMYKcmyk(73.6%, 43.4%, 0%, 37.6%)
CIE-LABlab(38.39, 8.25, -42.20)
CIE-LCHlch(38.39, 42.99, 281.06°)
OKLaboklab(47.12% -0.0261 -0.1206)
OKLCHoklch(47.12% 0.123 257.8)
XYZxyz(10.8667, 10.3066, 34.2108)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A9F #9F6F2A
analogous
#2A959F #2A5A9F #352A9F
triadic
#2A5A9F #9F2A5A #5A9F2A
tetradic
#2A5A9F #9F2A95 #9F6F2A #2A9F35
square
#2A5A9F #9F2A95 #9F6F2A #2A9F35
split-complementary
#2A5A9F #9F352A #959F2A
monochromatic
#10233E #1D3F6F #2A5A9F #3B76CB #6B98D8

Accessibility & contrast

On white

6.86
#2A5A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2A5A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5A9F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A9F#FFFFFF#000000##FFFFFF
##2A5A9F1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3860A2
Deuteranopia (green-blind)
#24559E
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a5a9f;
/* rgb */ color: rgb(42, 90, 159);
/* oklch */ color: oklch(47.1% 0.123 257.8);
Tailwind
colors: {
  custom: {
    50: '#7388bc',
    500: '#2a5a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a9f;
$custom-light: #7388bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a9f",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 159
  },
  "hsl": {
    "h": 215.385,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4712,
    "c": 0.12343,
    "h": 257.8
  },
  "luminance": 0.10308
}

Semantic roles & 50–950 ramp

primary
#2A5A9F
secondary
#BF9A66
accent
#A246E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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