#2A5F9D#2A5F9D

#2A5F9D is a mid, moderate cyan. Relative luminance 0.111; OKLCH L 48.2% C 0.115 H 254.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2A5F9D
RGBrgb(42, 95, 157)
HSLhsl(212, 58%, 39%)
HSVhsv(212, 73%, 62%)
CMYKcmyk(73.2%, 39.5%, 0%, 38.4%)
CIE-LABlab(39.76, 4.26, -38.80)
CIE-LCHlch(39.76, 39.04, 276.26°)
OKLaboklab(48.15% -0.0313 -0.1106)
OKLCHoklch(48.15% 0.115 254.2)
XYZxyz(11.1306, 11.1098, 33.4495)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F9D #9D682A
analogous
#2A999D #2A5F9D #2F2A9D
triadic
#2A5F9D #9D2A5F #5F9D2A
tetradic
#2A5F9D #9D2A99 #9D682A #2A9D2F
square
#2A5F9D #9D2A99 #9D682A #2A9D2F
split-complementary
#2A5F9D #9D2F2A #999D2A
monochromatic
#10253C #1D426D #2A5F9D #3A7CCA #6A9CD7

Accessibility & contrast

On white

6.52
#2A5F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2A5F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F9D
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F9D#FFFFFF#000000##FFFFFF
##2A5F9D1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42639F
Deuteranopia (green-blind)
#30599C
Tritanopia (blue-blind)
#006E76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5f9d;
/* rgb */ color: rgb(42, 95, 157);
/* oklch */ color: oklch(48.2% 0.115 254.2);
Tailwind
colors: {
  custom: {
    50: '#738cba',
    500: '#2a5f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f9d;
$custom-light: #738cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f9d",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 212.348,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.11495,
    "h": 254.2
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#2A5F9D
secondary
#BE9565
accent
#9A47E1
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #2A5F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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