#2D5A9E#2D5A9E

#2D5A9E is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.2% C 0.121 H 258.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2D5A9E
RGBrgb(45, 90, 158)
HSLhsl(216, 56%, 40%)
HSVhsv(216, 72%, 62%)
CMYKcmyk(71.5%, 43%, 0%, 38%)
CIE-LABlab(38.44, 8.32, -41.50)
CIE-LCHlch(38.44, 42.33, 281.33°)
OKLaboklab(47.17% -0.024 -0.1186)
OKLCHoklch(47.17% 0.121 258.5)
XYZxyz(10.9077, 10.3377, 33.7616)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A9E #9E712D
analogous
#2D939E #2D5A9E #382D9E
triadic
#2D5A9E #9E2D5A #5A9E2D
tetradic
#2D5A9E #9E2D93 #9E712D #2D9E38
square
#2D5A9E #9E2D93 #9E712D #2D9E38
split-complementary
#2D5A9E #9E382D #939E2D
monochromatic
#12243F #1F3F6E #2D5A9E #4076C9 #6F98D6

Accessibility & contrast

On white

6.85
#2D5A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2D5A9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5A9E
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5A9E#FFFFFF#000000##FFFFFF
##2D5A9E1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3960A1
Deuteranopia (green-blind)
#26569D
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d5a9e;
/* rgb */ color: rgb(45, 90, 158);
/* oklch */ color: oklch(47.2% 0.121 258.5);
Tailwind
colors: {
  custom: {
    50: '#7488bb',
    500: '#2d5a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a9e;
$custom-light: #7488bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a9e",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 158
  },
  "hsl": {
    "h": 216.106,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47174,
    "c": 0.12098,
    "h": 258.5
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#2D5A9E
secondary
#BD9C69
accent
#A349DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D5A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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