#2A5F7D#2A5F7D

#2A5F7D is a mid, moderate cyan. Relative luminance 0.102; OKLCH L 46.3% C 0.074 H 236.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2A5F7D
RGBrgb(42, 95, 125)
HSLhsl(202, 50%, 33%)
HSVhsv(202, 66%, 49%)
CMYKcmyk(66.4%, 24%, 0%, 51%)
CIE-LABlab(38.12, -7.54, -22.05)
CIE-LCHlch(38.12, 23.31, 251.12°)
OKLaboklab(46.32% -0.0412 -0.0619)
OKLCHoklch(46.32% 0.074 236.3)
XYZxyz(8.7473, 10.1564, 20.8975)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F7D #7D482A
analogous
#2A7D72 #2A5F7D #2A357D
triadic
#2A5F7D #7D2A5F #5F7D2A
tetradic
#2A5F7D #722A7D #7D482A #357D2A
square
#2A5F7D #722A7D #7D482A #357D2A
split-complementary
#2A5F7D #7D2A35 #7D722A
monochromatic
#0B1921 #1B3C4F #2A5F7D #3982AB #5AA0C8

Accessibility & contrast

On white

6.93
#2A5F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2A5F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F7D
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F7D#FFFFFF#000000##FFFFFF
##2A5F7D1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5f7d;
/* rgb */ color: rgb(42, 95, 125);
/* oklch */ color: oklch(46.3% 0.074 236.3);
Tailwind
colors: {
  custom: {
    50: '#6d8ca2',
    500: '#2a5f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f7d;
$custom-light: #6d8ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f7d",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 125
  },
  "hsl": {
    "h": 201.687,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.46321,
    "c": 0.07435,
    "h": 236.3
  },
  "luminance": 0.10157
}

Semantic roles & 50–950 ramp

primary
#2A5F7D
secondary
#AD7556
accent
#814FD9
background
#F6F8FA
surface
#ECF0F3
border
#C7CBCD
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #2A5F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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