#2C5AA2#2C5AA2

#2C5AA2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.4% C 0.127 H 259.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2C5AA2
RGBrgb(44, 90, 162)
HSLhsl(217, 57%, 40%)
HSVhsv(217, 73%, 64%)
CMYKcmyk(72.8%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.65, 9.68, -43.57)
CIE-LCHlch(38.65, 44.63, 282.53°)
OKLaboklab(47.4% -0.024 -0.1246)
OKLCHoklch(47.4% 0.127 259.1)
XYZxyz(11.2141, 10.4552, 35.6025)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5AA2 #A2742C
analogous
#2C95A2 #2C5AA2 #392CA2
triadic
#2C5AA2 #A22C5A #5AA22C
tetradic
#2C5AA2 #A22C95 #A2742C #2CA239
square
#2C5AA2 #A22C95 #A2742C #2CA239
split-complementary
#2C5AA2 #A2392C #95A22C
monochromatic
#122542 #1F3F72 #2C5AA2 #4076CB #7099D8

Accessibility & contrast

On white

6.79
#2C5AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2C5AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5AA2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5AA2#FFFFFF#000000##FFFFFF
##2C5AA21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#2156A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c5aa2;
/* rgb */ color: rgb(44, 90, 162);
/* oklch */ color: oklch(47.4% 0.127 259.1);
Tailwind
colors: {
  custom: {
    50: '#7588be',
    500: '#2c5aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2c5aa2;
$custom-light: #7588be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5aa2",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 216.61,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47402,
    "c": 0.12693,
    "h": 259.1
  },
  "luminance": 0.10456
}

Semantic roles & 50–950 ramp

primary
#2C5AA2
secondary
#BF9E6A
accent
#A547E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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