#2D5397#2D5397

#2D5397 is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.1% C 0.120 H 261.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2D5397
RGBrgb(45, 83, 151)
HSLhsl(218, 54%, 38%)
HSVhsv(218, 70%, 59%)
CMYKcmyk(70.2%, 45%, 0%, 40.8%)
CIE-LABlab(35.94, 10.25, -41.29)
CIE-LCHlch(35.94, 42.55, 283.94°)
OKLaboklab(45.1% -0.0186 -0.1181)
OKLCHoklch(45.1% 0.12 261)
XYZxyz(9.7594, 8.9778, 30.4907)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5397 #97712D
analogous
#2D8897 #2D5397 #3C2D97
triadic
#2D5397 #972D53 #53972D
tetradic
#2D5397 #972D88 #97712D #2D973C
square
#2D5397 #972D88 #97712D #2D973C
split-complementary
#2D5397 #973C2D #88972D
monochromatic
#111F39 #1F3968 #2D5397 #3C6DC5 #6B91D3

Accessibility & contrast

On white

7.51
#2D5397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2D5397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5397
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5397#FFFFFF#000000##FFFFFF
##2D53971.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#1F5096
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2d5397;
/* rgb */ color: rgb(45, 83, 151);
/* oklch */ color: oklch(45.1% 0.120 261.0);
Tailwind
colors: {
  custom: {
    50: '#7382b6',
    500: '#2d5397',
    950: '#000000',
  },
}
SCSS
$custom: #2d5397;
$custom-light: #7382b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5397",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 218.491,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45103,
    "c": 0.11953,
    "h": 261
  },
  "luminance": 0.08979
}

Semantic roles & 50–950 ramp

primary
#2D5397
secondary
#BA9C66
accent
#A94ADD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5397

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

Preview Lab → · Contrast checker → · Palette generator →

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