#2A5F83#2A5F83

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

Color values

HEX#2A5F83
RGBrgb(42, 95, 131)
HSLhsl(204, 51%, 34%)
HSVhsv(204, 68%, 51%)
CMYKcmyk(67.9%, 27.5%, 0%, 48.6%)
CIE-LABlab(38.40, -5.40, -25.28)
CIE-LCHlch(38.40, 25.85, 257.95°)
OKLaboklab(46.63% -0.0391 -0.0712)
OKLCHoklch(46.63% 0.081 241.2)
XYZxyz(9.1422, 10.3144, 22.9774)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F83 #834E2A
analogous
#2A837B #2A5F83 #2A3383
triadic
#2A5F83 #832A5F #5F832A
tetradic
#2A5F83 #7B2A83 #834E2A #33832A
square
#2A5F83 #7B2A83 #834E2A #33832A
split-complementary
#2A5F83 #832A33 #837B2A
monochromatic
#0C1C26 #1B3D55 #2A5F83 #3981B1 #5D9ECB

Accessibility & contrast

On white

6.86
#2A5F83 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5F83
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F83#FFFFFF#000000##FFFFFF
##2A5F831.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5f83;
/* rgb */ color: rgb(42, 95, 131);
/* oklch */ color: oklch(46.6% 0.081 241.2);
Tailwind
colors: {
  custom: {
    50: '#6e8ca7',
    500: '#2a5f83',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f83;
$custom-light: #6e8ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f83",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 131
  },
  "hsl": {
    "h": 204.27,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46634,
    "c": 0.08119,
    "h": 241.2
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#2A5F83
secondary
#B17C58
accent
#864DDB
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #2A5F83

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

Preview Lab → · Contrast checker → · Palette generator →

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