#2545A5#2545A5

#2545A5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.159 H 265.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2545A5
RGBrgb(37, 69, 165)
HSLhsl(225, 63%, 40%)
HSVhsv(225, 78%, 65%)
CMYKcmyk(77.6%, 58.2%, 0%, 35.3%)
CIE-LABlab(32.62, 23.91, -55.10)
CIE-LCHlch(32.62, 60.07, 293.46°)
OKLaboklab(42.8% -0.0116 -0.1591)
OKLCHoklch(42.8% 0.159 265.8)
XYZxyz(9.6802, 7.3651, 36.5014)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2545A5 #A58525
analogous
#2585A5 #2545A5 #4525A5
triadic
#2545A5 #A52545 #45A525
tetradic
#2545A5 #A52585 #A58525 #25A545
square
#2545A5 #A52585 #A58525 #25A545
split-complementary
#2545A5 #A54525 #85A525
monochromatic
#0F1B41 #1A3073 #2545A5 #355DD2 #6785DD

Accessibility & contrast

On white

8.49
#2545A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2545A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2545A5
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2545A5#FFFFFF#000000##FFFFFF
##2545A51.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2545a5;
/* rgb */ color: rgb(37, 69, 165);
/* oklch */ color: oklch(42.8% 0.159 265.8);
Tailwind
colors: {
  custom: {
    50: '#7478c0',
    500: '#2545a5',
    950: '#000000',
  },
}
SCSS
$custom: #2545a5;
$custom-light: #7478c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2545a5",
  "rgb": {
    "r": 37,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 225,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42802,
    "c": 0.15949,
    "h": 265.8
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#2545A5
secondary
#C3AB63
accent
#BD41E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2545A5

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

Preview Lab → · Contrast checker → · Palette generator →

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