#2D5291#2D5291

#2D5291 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.5% C 0.112 H 260.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2D5291
RGBrgb(45, 82, 145)
HSLhsl(218, 53%, 37%)
HSVhsv(218, 69%, 57%)
CMYKcmyk(69%, 43.4%, 0%, 43.1%)
CIE-LABlab(35.27, 8.64, -38.73)
CIE-LCHlch(35.27, 39.68, 282.57°)
OKLaboklab(44.47% -0.0188 -0.1105)
OKLCHoklch(44.47% 0.112 260.4)
XYZxyz(9.2085, 8.6359, 27.9642)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5291 #916C2D
analogous
#2D8491 #2D5291 #3A2D91
triadic
#2D5291 #912D52 #52912D
tetradic
#2D5291 #912D84 #916C2D #2D913A
square
#2D5291 #912D84 #916C2D #2D913A
split-complementary
#2D5291 #913A2D #84912D
monochromatic
#101D34 #1F3862 #2D5291 #3B6CC0 #688FD0

Accessibility & contrast

On white

7.70
#2D5291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2D5291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5291
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5291#FFFFFF#000000##FFFFFF
##2D52911.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345893
Deuteranopia (green-blind)
#244F90
Tritanopia (blue-blind)
#00616A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d5291;
/* rgb */ color: rgb(45, 82, 145);
/* oklch */ color: oklch(44.5% 0.112 260.4);
Tailwind
colors: {
  custom: {
    50: '#7282b1',
    500: '#2d5291',
    950: '#000000',
  },
}
SCSS
$custom: #2d5291;
$custom-light: #7282b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5291",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 217.8,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44468,
    "c": 0.11213,
    "h": 260.4
  },
  "luminance": 0.08637
}

Semantic roles & 50–950 ramp

primary
#2D5291
secondary
#B79863
accent
#A74CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5291

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

Preview Lab → · Contrast checker → · Palette generator →

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