#2A5095#2A5095

#2A5095 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.1% C 0.121 H 261.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2A5095
RGBrgb(42, 80, 149)
HSLhsl(219, 56%, 37%)
HSVhsv(219, 72%, 58%)
CMYKcmyk(71.8%, 46.3%, 0%, 41.6%)
CIE-LABlab(34.80, 10.99, -41.92)
CIE-LCHlch(34.80, 43.34, 284.70°)
OKLaboklab(44.15% -0.0185 -0.12)
OKLCHoklch(44.15% 0.121 261.2)
XYZxyz(9.2464, 8.3985, 29.5617)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5095 #956F2A
analogous
#2A8595 #2A5095 #3A2A95
triadic
#2A5095 #952A50 #50952A
tetradic
#2A5095 #952A85 #956F2A #2A953A
square
#2A5095 #952A85 #956F2A #2A953A
split-complementary
#2A5095 #953A2A #85952A
monochromatic
#0F1D36 #1D3665 #2A5095 #376AC5 #668DD4

Accessibility & contrast

On white

7.84
#2A5095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5095
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5095#FFFFFF#000000##FFFFFF
##2A50951.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5798
Deuteranopia (green-blind)
#184D94
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5095;
/* rgb */ color: rgb(42, 80, 149);
/* oklch */ color: oklch(44.1% 0.121 261.2);
Tailwind
colors: {
  custom: {
    50: '#7180b4',
    500: '#2a5095',
    950: '#000000',
  },
}
SCSS
$custom: #2a5095;
$custom-light: #7180b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5095",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 149
  },
  "hsl": {
    "h": 218.692,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44147,
    "c": 0.12143,
    "h": 261.2
  },
  "luminance": 0.08399
}

Semantic roles & 50–950 ramp

primary
#2A5095
secondary
#BA9A61
accent
#AA48DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5095

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

Preview Lab → · Contrast checker → · Palette generator →

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