#2A507B#2A507B

#2A507B is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.5% C 0.084 H 252.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2A507B
RGBrgb(42, 80, 123)
HSLhsl(212, 49%, 32%)
HSVhsv(212, 66%, 48%)
CMYKcmyk(65.9%, 35%, 0%, 51.8%)
CIE-LABlab(33.26, 1.14, -28.42)
CIE-LCHlch(33.26, 28.44, 272.30°)
OKLaboklab(42.46% -0.0247 -0.0804)
OKLCHoklch(42.46% 0.084 252.9)
XYZxyz(7.3974, 7.6589, 19.8235)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A507B #7B552A
analogous
#2A797B #2A507B #2D2A7B
triadic
#2A507B #7B2A50 #507B2A
tetradic
#2A507B #7B2A79 #7B552A #2A7B2D
square
#2A507B #7B2A79 #7B552A #2A7B2D
split-complementary
#2A507B #7B2D2A #797B2A
monochromatic
#0B1520 #1A324D #2A507B #3A6EA9 #598CC6

Accessibility & contrast

On white

8.29
#2A507B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A507B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A507B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A507B#FFFFFF#000000##FFFFFF
##2A507B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527D
Deuteranopia (green-blind)
#324B7A
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a507b;
/* rgb */ color: rgb(42, 80, 123);
/* oklch */ color: oklch(42.5% 0.084 252.9);
Tailwind
colors: {
  custom: {
    50: '#6c80a1',
    500: '#2a507b',
    950: '#000000',
  },
}
SCSS
$custom: #2a507b;
$custom-light: #6c80a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a507b",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 123
  },
  "hsl": {
    "h": 211.852,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42455,
    "c": 0.08415,
    "h": 252.9
  },
  "luminance": 0.0766
}

Semantic roles & 50–950 ramp

primary
#2A507B
secondary
#AC8355
accent
#984FD9
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #2A507B

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

Preview Lab → · Contrast checker → · Palette generator →

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