#2548B2#2548B2

#2548B2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.5% C 0.173 H 265.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2548B2
RGBrgb(37, 72, 178)
HSLhsl(225, 66%, 42%)
HSVhsv(225, 79%, 70%)
CMYKcmyk(79.2%, 59.6%, 0%, 30.2%)
CIE-LABlab(34.48, 26.91, -59.83)
CIE-LCHlch(34.48, 65.60, 294.22°)
OKLaboklab(44.52% -0.0132 -0.1729)
OKLCHoklch(44.52% 0.173 265.6)
XYZxyz(11.1134, 8.2411, 43.1158)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2548B2 #B28F25
analogous
#258FB2 #2548B2 #4825B2
triadic
#2548B2 #B22548 #48B225
tetradic
#2548B2 #B2258F #B28F25 #25B248
square
#2548B2 #B2258F #B28F25 #25B248
split-complementary
#2548B2 #B24825 #8FB225
monochromatic
#101F4D #1A347F #2548B2 #3D63D7 #708CE1

Accessibility & contrast

On white

7.93
#2548B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2548B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2548B2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2548B2#FFFFFF#000000##FFFFFF
##2548B21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2548b2;
/* rgb */ color: rgb(37, 72, 178);
/* oklch */ color: oklch(44.5% 0.173 265.6);
Tailwind
colors: {
  custom: {
    50: '#777aca',
    500: '#2548b2',
    950: '#000000',
  },
}
SCSS
$custom: #2548b2;
$custom-light: #777aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2548b2",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 225.106,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44521,
    "c": 0.17341,
    "h": 265.6
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

primary
#2548B2
secondary
#C8B16B
accent
#BF3FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2548B2

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

Preview Lab → · Contrast checker → · Palette generator →

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