#2A5174#2A5174

#2A5174 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.3% C 0.074 H 247.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2A5174
RGBrgb(42, 81, 116)
HSLhsl(208, 47%, 31%)
HSVhsv(208, 64%, 45%)
CMYKcmyk(63.8%, 30.2%, 0%, 54.5%)
CIE-LABlab(33.22, -2.07, -24.14)
CIE-LCHlch(33.22, 24.23, 265.09°)
OKLaboklab(42.3% -0.0281 -0.068)
OKLCHoklch(42.3% 0.074 247.6)
XYZxyz(7.0485, 7.6374, 17.6223)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5174 #744D2A
analogous
#2A7472 #2A5174 #2A2C74
triadic
#2A5174 #742A51 #51742A
tetradic
#2A5174 #722A74 #744D2A #2C742A
square
#2A5174 #722A74 #744D2A #2C742A
split-complementary
#2A5174 #742A2C #74722A
monochromatic
#09121A #1A3247 #2A5174 #3A70A1 #568FC2

Accessibility & contrast

On white

8.31
#2A5174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5174
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5174#FFFFFF#000000##FFFFFF
##2A51741.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425276
Deuteranopia (green-blind)
#384B73
Tritanopia (blue-blind)
#00595D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5174;
/* rgb */ color: rgb(42, 81, 116);
/* oklch */ color: oklch(42.3% 0.074 247.6);
Tailwind
colors: {
  custom: {
    50: '#6b819c',
    500: '#2a5174',
    950: '#000000',
  },
}
SCSS
$custom: #2a5174;
$custom-light: #6b819c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5174",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 116
  },
  "hsl": {
    "h": 208.378,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42299,
    "c": 0.07356,
    "h": 247.6
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#2A5174
secondary
#A67B54
accent
#9051D6
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2A5174

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

Preview Lab → · Contrast checker → · Palette generator →

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