#2A507E#2A507E

#2A507E is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.6% C 0.088 H 254.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2A507E
RGBrgb(42, 80, 126)
HSLhsl(213, 50%, 33%)
HSVhsv(213, 67%, 49%)
CMYKcmyk(66.7%, 36.5%, 0%, 50.6%)
CIE-LABlab(33.43, 2.25, -30.02)
CIE-LCHlch(33.43, 30.11, 274.30°)
OKLaboklab(42.64% -0.0238 -0.0851)
OKLCHoklch(42.64% 0.088 254.4)
XYZxyz(7.5880, 7.7352, 20.8278)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A507E #7E582A
analogous
#2A7A7E #2A507E #2E2A7E
triadic
#2A507E #7E2A50 #507E2A
tetradic
#2A507E #7E2A7A #7E582A #2A7E2E
square
#2A507E #7E2A7A #7E582A #2A7E2E
split-complementary
#2A507E #7E2E2A #7A7E2A
monochromatic
#0B1622 #1B3350 #2A507E #396DAC #5A8CC8

Accessibility & contrast

On white

8.24
#2A507E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A507E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A507E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A507E#FFFFFF#000000##FFFFFF
##2A507E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#304B7D
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a507e;
/* rgb */ color: rgb(42, 80, 126);
/* oklch */ color: oklch(42.6% 0.088 254.4);
Tailwind
colors: {
  custom: {
    50: '#6d80a3',
    500: '#2a507e',
    950: '#000000',
  },
}
SCSS
$custom: #2a507e;
$custom-light: #6d80a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a507e",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 126
  },
  "hsl": {
    "h": 212.857,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42635,
    "c": 0.08839,
    "h": 254.4
  },
  "luminance": 0.07736
}

Semantic roles & 50–950 ramp

primary
#2A507E
secondary
#AE8656
accent
#9B4EDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #2A507E

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

Preview Lab → · Contrast checker → · Palette generator →

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