#2D5FAB#2D5FAB

#2D5FAB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.133 H 258.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2D5FAB
RGBrgb(45, 95, 171)
HSLhsl(216, 58%, 42%)
HSVhsv(216, 74%, 67%)
CMYKcmyk(73.7%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.70, 10.00, -45.61)
CIE-LCHlch(40.70, 46.69, 282.37°)
OKLaboklab(49.18% -0.0261 -0.1305)
OKLCHoklch(49.18% 0.133 258.7)
XYZxyz(12.5224, 11.6812, 40.1149)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FAB #AB792D
analogous
#2D9EAB #2D5FAB #3A2DAB
triadic
#2D5FAB #AB2D5F #5FAB2D
tetradic
#2D5FAB #AB2D9E #AB792D #2DAB3A
square
#2D5FAB #AB2D9E #AB792D #2DAB3A
split-complementary
#2D5FAB #AB3A2D #9EAB2D
monochromatic
#14294A #20447B #2D5FAB #477DCE #779FDB

Accessibility & contrast

On white

6.29
#2D5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2D5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FAB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FAB#FFFFFF#000000##FFFFFF
##2D5FAB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#215BA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5fab;
/* rgb */ color: rgb(45, 95, 171);
/* oklch */ color: oklch(49.2% 0.133 258.7);
Tailwind
colors: {
  custom: {
    50: '#778bc4',
    500: '#2d5fab',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fab;
$custom-light: #778bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fab",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 216.19,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49182,
    "c": 0.13313,
    "h": 258.7
  },
  "luminance": 0.11683
}

Semantic roles & 50–950 ramp

primary
#2D5FAB
secondary
#C3A271
accent
#A446E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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