#2A5191#2A5191

#2A5191 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.114 H 259.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2A5191
RGBrgb(42, 81, 145)
HSLhsl(217, 55%, 37%)
HSVhsv(217, 71%, 57%)
CMYKcmyk(71%, 44.1%, 0%, 43.1%)
CIE-LABlab(34.84, 8.80, -39.42)
CIE-LCHlch(34.84, 40.39, 282.58°)
OKLaboklab(44.1% -0.0203 -0.1126)
OKLCHoklch(44.1% 0.114 259.8)
XYZxyz(9.0063, 8.4205, 27.9332)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5191 #916A2A
analogous
#2A8591 #2A5191 #372A91
triadic
#2A5191 #912A51 #51912A
tetradic
#2A5191 #912A85 #916A2A #2A9137
square
#2A5191 #912A85 #916A2A #2A9137
split-complementary
#2A5191 #91372A #85912A
monochromatic
#0F1C32 #1C3662 #2A5191 #386CC0 #638DD2

Accessibility & contrast

On white

7.82
#2A5191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A5191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5191
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5191#FFFFFF#000000##FFFFFF
##2A51911.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325793
Deuteranopia (green-blind)
#204E90
Tritanopia (blue-blind)
#00606A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5191;
/* rgb */ color: rgb(42, 81, 145);
/* oklch */ color: oklch(44.1% 0.114 259.8);
Tailwind
colors: {
  custom: {
    50: '#7081b2',
    500: '#2a5191',
    950: '#000000',
  },
}
SCSS
$custom: #2a5191;
$custom-light: #7081b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5191",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 145
  },
  "hsl": {
    "h": 217.282,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.441,
    "c": 0.11446,
    "h": 259.8
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#2A5191
secondary
#B8965F
accent
#A649DE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2A5191

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

Preview Lab → · Contrast checker → · Palette generator →

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