#2A5091#2A5091

#2A5091 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.116 H 260.4°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2A5091
RGBrgb(42, 80, 145)
HSLhsl(218, 55%, 37%)
HSVhsv(218, 71%, 57%)
CMYKcmyk(71%, 44.8%, 0%, 43.1%)
CIE-LABlab(34.55, 9.46, -39.90)
CIE-LCHlch(34.55, 41.00, 283.34°)
OKLaboklab(43.87% -0.0193 -0.1141)
OKLCHoklch(43.87% 0.116 260.4)
XYZxyz(8.9325, 8.2730, 27.9087)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5091 #916B2A
analogous
#2A8491 #2A5091 #382A91
triadic
#2A5091 #912A50 #50912A
tetradic
#2A5091 #912A84 #916B2A #2A9138
square
#2A5091 #912A84 #916B2A #2A9138
split-complementary
#2A5091 #91382A #84912A
monochromatic
#0F1C32 #1C3662 #2A5091 #386AC0 #638CD2

Accessibility & contrast

On white

7.91
#2A5091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2A5091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5091
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5091#FFFFFF#000000##FFFFFF
##2A50911.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305693
Deuteranopia (green-blind)
#1E4D90
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5091;
/* rgb */ color: rgb(42, 80, 145);
/* oklch */ color: oklch(43.9% 0.116 260.4);
Tailwind
colors: {
  custom: {
    50: '#7080b2',
    500: '#2a5091',
    950: '#000000',
  },
}
SCSS
$custom: #2a5091;
$custom-light: #7080b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5091",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 145
  },
  "hsl": {
    "h": 217.864,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43869,
    "c": 0.11569,
    "h": 260.4
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#2A5091
secondary
#B8975F
accent
#A749DE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2A5091

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

Preview Lab → · Contrast checker → · Palette generator →

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