#2D5195#2D5195

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

Color values

HEX#2D5195
RGBrgb(45, 81, 149)
HSLhsl(219, 54%, 38%)
HSVhsv(219, 70%, 58%)
CMYKcmyk(69.8%, 45.6%, 0%, 41.6%)
CIE-LABlab(35.23, 10.81, -41.23)
CIE-LCHlch(35.23, 42.62, 284.70°)
OKLaboklab(44.51% -0.017 -0.1179)
OKLCHoklch(44.51% 0.119 261.8)
XYZxyz(9.4475, 8.6117, 29.5923)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5195 #95712D
analogous
#2D8595 #2D5195 #3D2D95
triadic
#2D5195 #952D51 #51952D
tetradic
#2D5195 #952D85 #95712D #2D953D
square
#2D5195 #952D85 #95712D #2D953D
split-complementary
#2D5195 #953D2D #85952D
monochromatic
#111E37 #1F3766 #2D5195 #3B6BC4 #6A8ED2

Accessibility & contrast

On white

7.71
#2D5195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2D5195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5195
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5195#FFFFFF#000000##FFFFFF
##2D51951.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305898
Deuteranopia (green-blind)
#1C4E94
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d5195;
/* rgb */ color: rgb(45, 81, 149);
/* oklch */ color: oklch(44.5% 0.119 261.8);
Tailwind
colors: {
  custom: {
    50: '#7281b4',
    500: '#2d5195',
    950: '#000000',
  },
}
SCSS
$custom: #2d5195;
$custom-light: #7281b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5195",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 149
  },
  "hsl": {
    "h": 219.231,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44511,
    "c": 0.11913,
    "h": 261.8
  },
  "luminance": 0.08613
}

Semantic roles & 50–950 ramp

primary
#2D5195
secondary
#B99C65
accent
#AA4BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5195

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

Preview Lab → · Contrast checker → · Palette generator →

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