#2545A7#2545A7

#2545A7 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.162 H 265.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2545A7
RGBrgb(37, 69, 167)
HSLhsl(225, 64%, 40%)
HSVhsv(225, 78%, 65%)
CMYKcmyk(77.8%, 58.7%, 0%, 34.5%)
CIE-LABlab(32.78, 24.69, -56.04)
CIE-LCHlch(32.78, 61.23, 293.77°)
OKLaboklab(42.97% -0.0115 -0.1618)
OKLCHoklch(42.97% 0.162 265.9)
XYZxyz(9.8637, 7.4385, 37.4676)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2545A7 #A78725
analogous
#2586A7 #2545A7 #4625A7
triadic
#2545A7 #A72545 #45A725
tetradic
#2545A7 #A72586 #A78725 #25A746
square
#2545A7 #A72586 #A78725 #25A746
split-complementary
#2545A7 #A74625 #86A725
monochromatic
#0F1C43 #1A3075 #2545A7 #375DD3 #6985DE

Accessibility & contrast

On white

8.44
#2545A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2545A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2545A7
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2545A7#FFFFFF#000000##FFFFFF
##2545A71.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2545a7;
/* rgb */ color: rgb(37, 69, 167);
/* oklch */ color: oklch(43.0% 0.162 265.9);
Tailwind
colors: {
  custom: {
    50: '#7478c2',
    500: '#2545a7',
    950: '#000000',
  },
}
SCSS
$custom: #2545a7;
$custom-light: #7478c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2545a7",
  "rgb": {
    "r": 37,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 225.231,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.42973,
    "c": 0.16223,
    "h": 265.9
  },
  "luminance": 0.0744
}

Semantic roles & 50–950 ramp

primary
#2545A7
secondary
#C4AC64
accent
#BE41E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2545A7

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

Preview Lab → · Contrast checker → · Palette generator →

#2545A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva