#2D5295#2D5295

#2D5295 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.7% C 0.118 H 261.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2D5295
RGBrgb(45, 82, 149)
HSLhsl(219, 54%, 38%)
HSVhsv(219, 70%, 58%)
CMYKcmyk(69.8%, 45%, 0%, 41.6%)
CIE-LABlab(35.52, 10.15, -40.76)
CIE-LCHlch(35.52, 42.00, 283.99°)
OKLaboklab(44.74% -0.018 -0.1165)
OKLCHoklch(44.74% 0.118 261.2)
XYZxyz(9.5224, 8.7614, 29.6172)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5295 #95702D
analogous
#2D8695 #2D5295 #3C2D95
triadic
#2D5295 #952D52 #52952D
tetradic
#2D5295 #952D86 #95702D #2D953C
square
#2D5295 #952D86 #95702D #2D953C
split-complementary
#2D5295 #953C2D #86952D
monochromatic
#111E37 #1F3866 #2D5295 #3B6CC4 #6A8FD2

Accessibility & contrast

On white

7.63
#2D5295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2D5295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5295
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5295#FFFFFF#000000##FFFFFF
##2D52951.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315998
Deuteranopia (green-blind)
#1F4F94
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d5295;
/* rgb */ color: rgb(45, 82, 149);
/* oklch */ color: oklch(44.7% 0.118 261.2);
Tailwind
colors: {
  custom: {
    50: '#7282b4',
    500: '#2d5295',
    950: '#000000',
  },
}
SCSS
$custom: #2d5295;
$custom-light: #7282b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5295",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 149
  },
  "hsl": {
    "h": 218.654,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44739,
    "c": 0.11789,
    "h": 261.2
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#2D5295
secondary
#B99B65
accent
#A94BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5295

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

Preview Lab → · Contrast checker → · Palette generator →

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