#2A5172#2A5172

#2A5172 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.2% C 0.071 H 246.1°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2A5172
RGBrgb(42, 81, 114)
HSLhsl(208, 46%, 31%)
HSVhsv(208, 63%, 45%)
CMYKcmyk(63.2%, 28.9%, 0%, 55.3%)
CIE-LABlab(33.12, -2.79, -23.04)
CIE-LCHlch(33.12, 23.21, 263.08°)
OKLaboklab(42.19% -0.0288 -0.0648)
OKLCHoklch(42.19% 0.071 246.1)
XYZxyz(6.9334, 7.5914, 17.0162)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5172 #724B2A
analogous
#2A726F #2A5172 #2A2D72
triadic
#2A5172 #722A51 #51722A
tetradic
#2A5172 #6F2A72 #724B2A #2D722A
square
#2A5172 #6F2A72 #724B2A #2D722A
split-complementary
#2A5172 #722A2D #726F2A
monochromatic
#091119 #1A3145 #2A5172 #3A719F #5690C1

Accessibility & contrast

On white

8.34
#2A5172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A5172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5172
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5172#FFFFFF#000000##FFFFFF
##2A51721.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435273
Deuteranopia (green-blind)
#394B71
Tritanopia (blue-blind)
#00595C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5172;
/* rgb */ color: rgb(42, 81, 114);
/* oklch */ color: oklch(42.2% 0.071 246.1);
Tailwind
colors: {
  custom: {
    50: '#6b819a',
    500: '#2a5172',
    950: '#000000',
  },
}
SCSS
$custom: #2a5172;
$custom-light: #6b819a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5172",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 207.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42189,
    "c": 0.07092,
    "h": 246.1
  },
  "luminance": 0.07592
}

Semantic roles & 50–950 ramp

primary
#2A5172
secondary
#A47954
accent
#8E52D6
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2A5172

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

Preview Lab → · Contrast checker → · Palette generator →

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