#2A5271#2A5271

#2A5271 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.4% C 0.069 H 243.9°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2A5271
RGBrgb(42, 82, 113)
HSLhsl(206, 46%, 30%)
HSVhsv(206, 63%, 44%)
CMYKcmyk(62.8%, 27.4%, 0%, 55.7%)
CIE-LABlab(33.39, -3.79, -21.99)
CIE-LCHlch(33.39, 22.32, 260.24°)
OKLaboklab(42.39% -0.0303 -0.0618)
OKLCHoklch(42.39% 0.069 243.9)
XYZxyz(6.9517, 7.7184, 16.7430)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5271 #71492A
analogous
#2A716C #2A5271 #2A2F71
triadic
#2A5271 #712A52 #52712A
tetradic
#2A5271 #6C2A71 #71492A #2F712A
square
#2A5271 #6C2A71 #71492A #2F712A
split-complementary
#2A5271 #712A2F #716C2A
monochromatic
#091118 #193244 #2A5271 #3B729E #5591C0

Accessibility & contrast

On white

8.26
#2A5271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A5271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5271
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5271#FFFFFF#000000##FFFFFF
##2A52711.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445272
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#005A5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5271;
/* rgb */ color: rgb(42, 82, 113);
/* oklch */ color: oklch(42.4% 0.069 243.9);
Tailwind
colors: {
  custom: {
    50: '#6b829a',
    500: '#2a5271',
    950: '#000000',
  },
}
SCSS
$custom: #2a5271;
$custom-light: #6b829a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5271",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 206.197,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.06882,
    "h": 243.9
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#2A5271
secondary
#A37654
accent
#8C52D5
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2A5271

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

Preview Lab → · Contrast checker → · Palette generator →

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