#2A5794#2A5794

#2A5794 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.7% C 0.112 H 256.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5794
RGBrgb(42, 87, 148)
HSLhsl(215, 56%, 37%)
HSVhsv(215, 72%, 58%)
CMYKcmyk(71.6%, 41.2%, 0%, 42%)
CIE-LABlab(36.83, 6.00, -38.07)
CIE-LCHlch(36.83, 38.54, 278.96°)
OKLaboklab(45.7% -0.0256 -0.1086)
OKLCHoklch(45.7% 0.112 256.7)
XYZxyz(9.7064, 9.4457, 29.3229)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5794 #94672A
analogous
#2A8C94 #2A5794 #322A94
triadic
#2A5794 #942A57 #57942A
tetradic
#2A5794 #942A8C #94672A #2A9432
square
#2A5794 #942A8C #94672A #2A9432
split-complementary
#2A5794 #94322A #8C942A
monochromatic
#0F1F35 #1C3B64 #2A5794 #3873C4 #6594D3

Accessibility & contrast

On white

7.27
#2A5794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A5794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5794
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5794#FFFFFF#000000##FFFFFF
##2A57941.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5C96
Deuteranopia (green-blind)
#2A5293
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a5794;
/* rgb */ color: rgb(42, 87, 148);
/* oklch */ color: oklch(45.7% 0.112 256.7);
Tailwind
colors: {
  custom: {
    50: '#7185b4',
    500: '#2a5794',
    950: '#000000',
  },
}
SCSS
$custom: #2a5794;
$custom-light: #7185b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5794",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 148
  },
  "hsl": {
    "h": 214.528,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45697,
    "c": 0.11156,
    "h": 256.7
  },
  "luminance": 0.09447
}

Semantic roles & 50–950 ramp

primary
#2A5794
secondary
#B99460
accent
#9F49DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #2A5794

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

Preview Lab → · Contrast checker → · Palette generator →

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