#2A5F8E#2A5F8E

#2A5F8E is a mid, moderate cyan. Relative luminance 0.106; OKLCH L 47.2% C 0.095 H 248.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2A5F8E
RGBrgb(42, 95, 142)
HSLhsl(208, 54%, 36%)
HSVhsv(208, 70%, 56%)
CMYKcmyk(70.4%, 33.1%, 0%, 44.3%)
CIE-LABlab(38.95, -1.37, -31.09)
CIE-LCHlch(38.95, 31.12, 267.47°)
OKLaboklab(47.25% -0.0354 -0.088)
OKLCHoklch(47.25% 0.095 248.1)
XYZxyz(9.9277, 10.6286, 27.1143)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F8E #8E592A
analogous
#2A8E8B #2A5F8E #2A2D8E
triadic
#2A5F8E #8E2A5F #5F8E2A
tetradic
#2A5F8E #8B2A8E #8E592A #2D8E2A
square
#2A5F8E #8B2A8E #8E592A #2D8E2A
split-complementary
#2A5F8E #8E2A2D #8E8B2A
monochromatic
#0E2030 #1C3F5F #2A5F8E #387FBD #629DD1

Accessibility & contrast

On white

6.72
#2A5F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A5F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F8E
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F8E#FFFFFF#000000##FFFFFF
##2A5F8E1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6190
Deuteranopia (green-blind)
#3C578D
Tritanopia (blue-blind)
#006A70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5f8e;
/* rgb */ color: rgb(42, 95, 142);
/* oklch */ color: oklch(47.2% 0.095 248.1);
Tailwind
colors: {
  custom: {
    50: '#708caf',
    500: '#2a5f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f8e;
$custom-light: #708caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f8e",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 142
  },
  "hsl": {
    "h": 208.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47245,
    "c": 0.09492,
    "h": 248.1
  },
  "luminance": 0.1063
}

Semantic roles & 50–950 ramp

primary
#2A5F8E
secondary
#B6875D
accent
#8F4ADE
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2A5F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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