#2545A8#2545A8

#2545A8 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.1% C 0.164 H 266.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2545A8
RGBrgb(37, 69, 168)
HSLhsl(225, 64%, 40%)
HSVhsv(225, 78%, 66%)
CMYKcmyk(78%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.87, 25.07, -56.51)
CIE-LCHlch(32.87, 61.82, 293.93°)
OKLaboklab(43.06% -0.0115 -0.1632)
OKLCHoklch(43.06% 0.164 266)
XYZxyz(9.9565, 7.4756, 37.9564)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2545A8 #A88825
analogous
#2586A8 #2545A8 #4725A8
triadic
#2545A8 #A82545 #45A825
tetradic
#2545A8 #A82586 #A88825 #25A847
square
#2545A8 #A82586 #A88825 #25A847
split-complementary
#2545A8 #A84725 #86A825
monochromatic
#0F1C44 #1A3076 #2545A8 #375DD3 #6986DE

Accessibility & contrast

On white

8.42
#2545A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2545A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2545A8
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2545A8#FFFFFF#000000##FFFFFF
##2545A81.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2545a8;
/* rgb */ color: rgb(37, 69, 168);
/* oklch */ color: oklch(43.1% 0.164 266.0);
Tailwind
colors: {
  custom: {
    50: '#7478c3',
    500: '#2545a8',
    950: '#000000',
  },
}
SCSS
$custom: #2545a8;
$custom-light: #7478c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2545a8",
  "rgb": {
    "r": 37,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 225.344,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43059,
    "c": 0.1636,
    "h": 266
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#2545A8
secondary
#C4AD65
accent
#BE41E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2545A8

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

Preview Lab → · Contrast checker → · Palette generator →

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