#2A5795#2A5795

#2A5795 is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.8% C 0.113 H 257.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#2A5795
RGBrgb(42, 87, 149)
HSLhsl(215, 56%, 37%)
HSVhsv(215, 72%, 58%)
CMYKcmyk(71.8%, 41.6%, 0%, 41.6%)
CIE-LABlab(36.89, 6.38, -38.58)
CIE-LCHlch(36.89, 39.11, 279.39°)
OKLaboklab(45.76% -0.0254 -0.1101)
OKLCHoklch(45.76% 0.113 257)
XYZxyz(9.7859, 9.4775, 29.7416)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5795 #95682A
analogous
#2A8D95 #2A5795 #322A95
triadic
#2A5795 #952A57 #57952A
tetradic
#2A5795 #952A8D #95682A #2A9532
square
#2A5795 #952A8D #95682A #2A9532
split-complementary
#2A5795 #95322A #8D952A
monochromatic
#0F1F36 #1D3B65 #2A5795 #3773C5 #6694D4

Accessibility & contrast

On white

7.25
#2A5795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A5795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5795
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5795#FFFFFF#000000##FFFFFF
##2A57951.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5C97
Deuteranopia (green-blind)
#295294
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a5795;
/* rgb */ color: rgb(42, 87, 149);
/* oklch */ color: oklch(45.8% 0.113 257.0);
Tailwind
colors: {
  custom: {
    50: '#7185b4',
    500: '#2a5795',
    950: '#000000',
  },
}
SCSS
$custom: #2a5795;
$custom-light: #7185b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5795",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 214.766,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45762,
    "c": 0.11296,
    "h": 257
  },
  "luminance": 0.09479
}

Semantic roles & 50–950 ramp

primary
#2A5795
secondary
#BA9461
accent
#A048DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5795

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

Preview Lab → · Contrast checker → · Palette generator →

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