#2A5789#2A5789

#2A5789 is a mid, moderate cyan. Relative luminance 0.091; OKLCH L 45.0% C 0.096 H 252.8°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#2A5789
RGBrgb(42, 87, 137)
HSLhsl(212, 53%, 35%)
HSVhsv(212, 69%, 54%)
CMYKcmyk(69.3%, 36.5%, 0%, 46.3%)
CIE-LABlab(36.20, 1.84, -32.39)
CIE-LCHlch(36.20, 32.44, 273.25°)
OKLaboklab(45% -0.0284 -0.0919)
OKLCHoklch(45% 0.096 252.8)
XYZxyz(8.8767, 9.1139, 24.9534)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5789 #895C2A
analogous
#2A8789 #2A5789 #2C2A89
triadic
#2A5789 #892A57 #57892A
tetradic
#2A5789 #892A87 #895C2A #2A892C
square
#2A5789 #892A87 #895C2A #2A892C
split-complementary
#2A5789 #892C2A #87892A
monochromatic
#0D1C2B #1C395A #2A5789 #3875B8 #5F94CE

Accessibility & contrast

On white

7.44
#2A5789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2A5789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5789
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5789#FFFFFF#000000##FFFFFF
##2A57891.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415A8B
Deuteranopia (green-blind)
#335188
Tritanopia (blue-blind)
#006369
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a5789;
/* rgb */ color: rgb(42, 87, 137);
/* oklch */ color: oklch(45.0% 0.096 252.8);
Tailwind
colors: {
  custom: {
    50: '#6f86ab',
    500: '#2a5789',
    950: '#000000',
  },
}
SCSS
$custom: #2a5789;
$custom-light: #6f86ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5789",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 137
  },
  "hsl": {
    "h": 211.579,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45004,
    "c": 0.09623,
    "h": 252.8
  },
  "luminance": 0.09115
}

Semantic roles & 50–950 ramp

primary
#2A5789
secondary
#B48A5B
accent
#984BDC
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2A5789

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

Preview Lab → · Contrast checker → · Palette generator →

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