#2528B2#2528B2

#2528B2 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.208 H 270.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2528B2
RGBrgb(37, 40, 178)
HSLhsl(239, 66%, 42%)
HSVhsv(239, 79%, 70%)
CMYKcmyk(79.2%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.09, 46.77, -71.99)
CIE-LCHlch(27.09, 85.85, 303.01°)
OKLaboklab(39.14% 0.0023 -0.2085)
OKLCHoklch(39.14% 0.208 270.6)
XYZxyz(9.5549, 5.1242, 42.5963)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2528B2 #B2AF25
analogous
#256FB2 #2528B2 #6825B2
triadic
#2528B2 #B22528 #28B225
tetradic
#2528B2 #B2256F #B2AF25 #25B268
square
#2528B2 #B2256F #B2AF25 #25B268
split-complementary
#2528B2 #B26825 #6FB225
monochromatic
#10114D #1A1D7F #2528B2 #3D41D7 #7073E1

Accessibility & contrast

On white

10.37
#2528B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2528B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2528B2
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2528B2#FFFFFF#000000##FFFFFF
##2528B21.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2528b2;
/* rgb */ color: rgb(37, 40, 178);
/* oklch */ color: oklch(39.1% 0.208 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a64ca',
    500: '#2528b2',
    950: '#000000',
  },
}
SCSS
$custom: #2528b2;
$custom-light: #7a64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2528b2",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 238.723,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39142,
    "c": 0.20848,
    "h": 270.6
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#2528B2
secondary
#C8C66B
accent
#E53FE9
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2528B2

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

Preview Lab → · Contrast checker → · Palette generator →

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