#2A5F9E#2A5F9E

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

Color values

HEX#2A5F9E
RGBrgb(42, 95, 158)
HSLhsl(213, 58%, 39%)
HSVhsv(213, 73%, 62%)
CMYKcmyk(73.4%, 39.9%, 0%, 38%)
CIE-LABlab(39.82, 4.64, -39.31)
CIE-LCHlch(39.82, 39.58, 276.73°)
OKLaboklab(48.22% -0.0311 -0.1121)
OKLCHoklch(48.22% 0.116 254.5)
XYZxyz(11.2163, 11.1440, 33.9010)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F9E #9E692A
analogous
#2A999E #2A5F9E #2F2A9E
triadic
#2A5F9E #9E2A5F #5F9E2A
tetradic
#2A5F9E #9E2A99 #9E692A #2A9E2F
square
#2A5F9E #9E2A99 #9E692A #2A9E2F
split-complementary
#2A5F9E #9E2F2A #999E2A
monochromatic
#10253D #1D426E #2A5F9E #3A7CCB #6B9DD8

Accessibility & contrast

On white

6.50
#2A5F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2A5F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F9E
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F9E#FFFFFF#000000##FFFFFF
##2A5F9E1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4264A1
Deuteranopia (green-blind)
#30599D
Tritanopia (blue-blind)
#006E77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5f9e;
/* rgb */ color: rgb(42, 95, 158);
/* oklch */ color: oklch(48.2% 0.116 254.5);
Tailwind
colors: {
  custom: {
    50: '#738cbb',
    500: '#2a5f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f9e;
$custom-light: #738cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f9e",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 158
  },
  "hsl": {
    "h": 212.586,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48215,
    "c": 0.11631,
    "h": 254.5
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#2A5F9E
secondary
#BE9666
accent
#9B47E1
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2A5F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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