#2A5F7E#2A5F7E

#2A5F7E is a mid, moderate cyan. Relative luminance 0.102; OKLCH L 46.4% C 0.075 H 237.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2A5F7E
RGBrgb(42, 95, 126)
HSLhsl(202, 50%, 33%)
HSVhsv(202, 67%, 49%)
CMYKcmyk(66.7%, 24.6%, 0%, 50.6%)
CIE-LABlab(38.17, -7.19, -22.59)
CIE-LCHlch(38.17, 23.71, 252.36°)
OKLaboklab(46.37% -0.0409 -0.0634)
OKLCHoklch(46.37% 0.075 237.2)
XYZxyz(8.8115, 10.1821, 21.2356)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F7E #7E492A
analogous
#2A7E73 #2A5F7E #2A357E
triadic
#2A5F7E #7E2A5F #5F7E2A
tetradic
#2A5F7E #732A7E #7E492A #357E2A
square
#2A5F7E #732A7E #7E492A #357E2A
split-complementary
#2A5F7E #7E2A35 #7E732A
monochromatic
#0B1A22 #1B3C50 #2A5F7E #3982AC #5AA0C8

Accessibility & contrast

On white

6.92
#2A5F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2A5F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F7E
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F7E#FFFFFF#000000##FFFFFF
##2A5F7E1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505F7F
Deuteranopia (green-blind)
#45567D
Tritanopia (blue-blind)
#006769
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a5f7e;
/* rgb */ color: rgb(42, 95, 126);
/* oklch */ color: oklch(46.4% 0.075 237.2);
Tailwind
colors: {
  custom: {
    50: '#6d8ca3',
    500: '#2a5f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f7e;
$custom-light: #6d8ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f7e",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 126
  },
  "hsl": {
    "h": 202.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.46372,
    "c": 0.07545,
    "h": 237.2
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

primary
#2A5F7E
secondary
#AE7656
accent
#824EDA
background
#F6F8FA
surface
#ECF0F3
border
#C7CBCD
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #2A5F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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