#2D5AAB#2D5AAB

#2D5AAB is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.1% C 0.139 H 261.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#2D5AAB
RGBrgb(45, 90, 171)
HSLhsl(219, 58%, 42%)
HSVhsv(219, 74%, 67%)
CMYKcmyk(73.7%, 47.4%, 0%, 32.9%)
CIE-LABlab(39.26, 13.26, -47.93)
CIE-LCHlch(39.26, 49.73, 285.46°)
OKLaboklab(48.07% -0.0216 -0.1375)
OKLCHoklch(48.07% 0.139 261.1)
XYZxyz(12.0864, 10.8092, 39.9696)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5AAB #AB7E2D
analogous
#2D99AB #2D5AAB #3F2DAB
triadic
#2D5AAB #AB2D5A #5AAB2D
tetradic
#2D5AAB #AB2D99 #AB7E2D #2DAB3F
square
#2D5AAB #AB2D99 #AB7E2D #2DAB3F
split-complementary
#2D5AAB #AB3F2D #99AB2D
monochromatic
#14274A #20417B #2D5AAB #4777CE #779BDB

Accessibility & contrast

On white

6.64
#2D5AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2D5AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5AAB
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5AAB#FFFFFF#000000##FFFFFF
##2D5AAB1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#0F57A9
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d5aab;
/* rgb */ color: rgb(45, 90, 171);
/* oklch */ color: oklch(48.1% 0.139 261.1);
Tailwind
colors: {
  custom: {
    50: '#7788c4',
    500: '#2d5aab',
    950: '#000000',
  },
}
SCSS
$custom: #2d5aab;
$custom-light: #7788c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5aab",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 171
  },
  "hsl": {
    "h": 218.571,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48066,
    "c": 0.13916,
    "h": 261.1
  },
  "luminance": 0.1081
}

Semantic roles & 50–950 ramp

primary
#2D5AAB
secondary
#C3A671
accent
#AA46E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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