#2545B2#2545B2

#2545B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.9% C 0.177 H 266.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2545B2
RGBrgb(37, 69, 178)
HSLhsl(226, 66%, 42%)
HSVhsv(226, 79%, 70%)
CMYKcmyk(79.2%, 61.2%, 0%, 30.2%)
CIE-LABlab(33.70, 28.90, -61.11)
CIE-LCHlch(33.70, 67.60, 295.31°)
OKLaboklab(43.94% -0.0113 -0.1767)
OKLCHoklch(43.94% 0.177 266.3)
XYZxyz(10.9241, 7.8626, 43.0527)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2545B2 #B29225
analogous
#258CB2 #2545B2 #4C25B2
triadic
#2545B2 #B22545 #45B225
tetradic
#2545B2 #B2258C #B29225 #25B24C
square
#2545B2 #B2258C #B29225 #25B24C
split-complementary
#2545B2 #B24C25 #8CB225
monochromatic
#101E4D #1A317F #2545B2 #3D60D7 #708AE1

Accessibility & contrast

On white

8.16
#2545B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2545B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2545B2
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2545B2#FFFFFF#000000##FFFFFF
##2545B21.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2545b2;
/* rgb */ color: rgb(37, 69, 178);
/* oklch */ color: oklch(43.9% 0.177 266.3);
Tailwind
colors: {
  custom: {
    50: '#7778ca',
    500: '#2545b2',
    950: '#000000',
  },
}
SCSS
$custom: #2545b2;
$custom-light: #7778ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2545b2",
  "rgb": {
    "r": 37,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 226.383,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43936,
    "c": 0.17707,
    "h": 266.3
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#2545B2
secondary
#C8B36B
accent
#C23FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2545B2

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

Preview Lab → · Contrast checker → · Palette generator →

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