#2541AB#2541AB

#2541AB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.173 H 267.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2541AB
RGBrgb(37, 65, 171)
HSLhsl(227, 64%, 41%)
HSVhsv(227, 78%, 67%)
CMYKcmyk(78.4%, 62%, 0%, 32.9%)
CIE-LABlab(32.06, 28.89, -59.61)
CIE-LCHlch(32.06, 66.24, 295.85°)
OKLaboklab(42.54% -0.0088 -0.1724)
OKLCHoklch(42.54% 0.173 267.1)
XYZxyz(10.0014, 7.1130, 39.3660)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541AB #AB8F25
analogous
#2584AB #2541AB #4C25AB
triadic
#2541AB #AB2541 #41AB25
tetradic
#2541AB #AB2584 #AB8F25 #25AB4C
square
#2541AB #AB2584 #AB8F25 #25AB4C
split-complementary
#2541AB #AB4C25 #84AB25
monochromatic
#0F1B46 #1A2E79 #2541AB #3959D4 #6B84DF

Accessibility & contrast

On white

8.67
#2541AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2541AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2541AB
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2541AB#FFFFFF#000000##FFFFFF
##2541AB1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2541ab;
/* rgb */ color: rgb(37, 65, 171);
/* oklch */ color: oklch(42.5% 0.173 267.1);
Tailwind
colors: {
  custom: {
    50: '#7675c5',
    500: '#2541ab',
    950: '#000000',
  },
}
SCSS
$custom: #2541ab;
$custom-light: #7675c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2541ab",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 227.463,
    "s": 64.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42538,
    "c": 0.17259,
    "h": 267.1
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#2541AB
secondary
#C5B167
accent
#C540E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2541AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2541AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva