#2A5E81#2A5E81

#2A5E81 is a mid, moderate cyan. Relative luminance 0.101; OKLCH L 46.3% C 0.080 H 240.9°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5E81
RGBrgb(42, 94, 129)
HSLhsl(204, 51%, 34%)
HSVhsv(204, 67%, 51%)
CMYKcmyk(67.4%, 27.1%, 0%, 49.4%)
CIE-LABlab(37.99, -5.50, -24.70)
CIE-LCHlch(37.99, 25.31, 257.44°)
OKLaboklab(46.28% -0.0386 -0.0695)
OKLCHoklch(46.28% 0.08 240.9)
XYZxyz(8.9185, 10.0817, 22.2406)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5E81 #814D2A
analogous
#2A8178 #2A5E81 #2A3281
triadic
#2A5E81 #812A5E #5E812A
tetradic
#2A5E81 #782A81 #814D2A #32812A
square
#2A5E81 #782A81 #814D2A #32812A
split-complementary
#2A5E81 #812A32 #81782A
monochromatic
#0C1B25 #1B3C53 #2A5E81 #3980AF #5C9DCA

Accessibility & contrast

On white

6.96
#2A5E81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2A5E81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5E81
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5E81#FFFFFF#000000##FFFFFF
##2A5E811.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5E83
Deuteranopia (green-blind)
#425680
Tritanopia (blue-blind)
#00676A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a5e81;
/* rgb */ color: rgb(42, 94, 129);
/* oklch */ color: oklch(46.3% 0.080 240.9);
Tailwind
colors: {
  custom: {
    50: '#6e8ba5',
    500: '#2a5e81',
    950: '#000000',
  },
}
SCSS
$custom: #2a5e81;
$custom-light: #6e8ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5e81",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 129
  },
  "hsl": {
    "h": 204.138,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46276,
    "c": 0.07953,
    "h": 240.9
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#2A5E81
secondary
#AF7B57
accent
#864DDA
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #2A5E81

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

Preview Lab → · Contrast checker → · Palette generator →

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