#2D5AA0#2D5AA0

#2D5AA0 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.3% C 0.124 H 259.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2D5AA0
RGBrgb(45, 90, 160)
HSLhsl(217, 56%, 40%)
HSVhsv(217, 72%, 63%)
CMYKcmyk(71.9%, 43.7%, 0%, 37.3%)
CIE-LABlab(38.56, 9.07, -42.50)
CIE-LCHlch(38.56, 43.46, 282.05°)
OKLaboklab(47.31% -0.0236 -0.1215)
OKLCHoklch(47.31% 0.124 259)
XYZxyz(11.0812, 10.4071, 34.6757)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5AA0 #A0732D
analogous
#2D93A0 #2D5AA0 #3A2DA0
triadic
#2D5AA0 #A02D5A #5AA02D
tetradic
#2D5AA0 #A02D93 #A0732D #2DA03A
square
#2D5AA0 #A02D93 #A0732D #2DA03A
split-complementary
#2D5AA0 #A03A2D #93A02D
monochromatic
#122440 #203F70 #2D5AA0 #4176C9 #7099D7

Accessibility & contrast

On white

6.81
#2D5AA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2D5AA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5AA0
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5AA0#FFFFFF#000000##FFFFFF
##2D5AA01.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A3
Deuteranopia (green-blind)
#24569F
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d5aa0;
/* rgb */ color: rgb(45, 90, 160);
/* oklch */ color: oklch(47.3% 0.124 259.0);
Tailwind
colors: {
  custom: {
    50: '#7488bc',
    500: '#2d5aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2d5aa0;
$custom-light: #7488bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5aa0",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 160
  },
  "hsl": {
    "h": 216.522,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47308,
    "c": 0.12378,
    "h": 259
  },
  "luminance": 0.10408
}

Semantic roles & 50–950 ramp

primary
#2D5AA0
secondary
#BE9E6B
accent
#A448DF
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D5AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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