#2A5F82#2A5F82

#2A5F82 is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.6% C 0.080 H 240.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2A5F82
RGBrgb(42, 95, 130)
HSLhsl(204, 51%, 34%)
HSVhsv(204, 68%, 51%)
CMYKcmyk(67.7%, 26.9%, 0%, 49%)
CIE-LABlab(38.35, -5.76, -24.74)
CIE-LCHlch(38.35, 25.40, 256.91°)
OKLaboklab(46.58% -0.0394 -0.0696)
OKLCHoklch(46.58% 0.08 240.5)
XYZxyz(9.0748, 10.2874, 22.6222)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F82 #824D2A
analogous
#2A8279 #2A5F82 #2A3382
triadic
#2A5F82 #822A5F #5F822A
tetradic
#2A5F82 #792A82 #824D2A #33822A
square
#2A5F82 #792A82 #824D2A #33822A
split-complementary
#2A5F82 #822A33 #82792A
monochromatic
#0C1B25 #1B3D54 #2A5F82 #3981B0 #5C9ECA

Accessibility & contrast

On white

6.87
#2A5F82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2A5F82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F82
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F82#FFFFFF#000000##FFFFFF
##2A5F821.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5F84
Deuteranopia (green-blind)
#435681
Tritanopia (blue-blind)
#00686B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a5f82;
/* rgb */ color: rgb(42, 95, 130);
/* oklch */ color: oklch(46.6% 0.080 240.5);
Tailwind
colors: {
  custom: {
    50: '#6e8ca6',
    500: '#2a5f82',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f82;
$custom-light: #6e8ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f82",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 130
  },
  "hsl": {
    "h": 203.864,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46581,
    "c": 0.08001,
    "h": 240.5
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#2A5F82
secondary
#B07B58
accent
#854DDB
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #2A5F82

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

Preview Lab → · Contrast checker → · Palette generator →

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