#2A5F8B#2A5F8B

#2A5F8B is a mid, moderate cyan. Relative luminance 0.105; OKLCH L 47.1% C 0.091 H 246.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2A5F8B
RGBrgb(42, 95, 139)
HSLhsl(207, 54%, 35%)
HSVhsv(207, 70%, 55%)
CMYKcmyk(69.8%, 31.7%, 0%, 45.5%)
CIE-LABlab(38.79, -2.48, -29.52)
CIE-LCHlch(38.79, 29.62, 265.20°)
OKLaboklab(47.07% -0.0364 -0.0835)
OKLCHoklch(47.07% 0.091 246.4)
XYZxyz(9.7055, 10.5397, 25.9440)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F8B #8B562A
analogous
#2A8B86 #2A5F8B #2A2F8B
triadic
#2A5F8B #8B2A5F #5F8B2A
tetradic
#2A5F8B #862A8B #8B562A #2F8B2A
square
#2A5F8B #862A8B #8B562A #2F8B2A
split-complementary
#2A5F8B #8B2A2F #8B862A
monochromatic
#0E1F2D #1C3F5C #2A5F8B #387FBA #609DCF

Accessibility & contrast

On white

6.76
#2A5F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2A5F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F8B
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F8B#FFFFFF#000000##FFFFFF
##2A5F8B1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608D
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#006A6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5f8b;
/* rgb */ color: rgb(42, 95, 139);
/* oklch */ color: oklch(47.1% 0.091 246.4);
Tailwind
colors: {
  custom: {
    50: '#6f8cad',
    500: '#2a5f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f8b;
$custom-light: #6f8cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f8b",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 207.216,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47074,
    "c": 0.09106,
    "h": 246.4
  },
  "luminance": 0.10541
}

Semantic roles & 50–950 ramp

primary
#2A5F8B
secondary
#B5845C
accent
#8D4BDD
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2A5F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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