#2541A7#2541A7

#2541A7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.167 H 267.0°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2541A7
RGBrgb(37, 65, 167)
HSLhsl(227, 64%, 40%)
HSVhsv(227, 78%, 65%)
CMYKcmyk(77.8%, 61.1%, 0%, 34.5%)
CIE-LABlab(31.72, 27.36, -57.77)
CIE-LCHlch(31.72, 63.92, 295.34°)
OKLaboklab(42.18% -0.0088 -0.167)
OKLCHoklch(42.18% 0.167 267)
XYZxyz(9.6259, 6.9628, 37.3884)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541A7 #A78B25
analogous
#2582A7 #2541A7 #4A25A7
triadic
#2541A7 #A72541 #41A725
tetradic
#2541A7 #A72582 #A78B25 #25A74A
square
#2541A7 #A72582 #A78B25 #25A74A
split-complementary
#2541A7 #A74A25 #82A725
monochromatic
#0F1A43 #1A2E75 #2541A7 #3758D3 #6982DE

Accessibility & contrast

On white

8.78
#2541A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2541A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2541A7
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2541A7#FFFFFF#000000##FFFFFF
##2541A71.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2541a7;
/* rgb */ color: rgb(37, 65, 167);
/* oklch */ color: oklch(42.2% 0.167 267.0);
Tailwind
colors: {
  custom: {
    50: '#7575c2',
    500: '#2541a7',
    950: '#000000',
  },
}
SCSS
$custom: #2541a7;
$custom-light: #7575c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2541a7",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 167
  },
  "hsl": {
    "h": 227.077,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.4218,
    "c": 0.1672,
    "h": 267
  },
  "luminance": 0.06964
}

Semantic roles & 50–950 ramp

primary
#2541A7
secondary
#C4AF64
accent
#C341E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2541A7

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

Preview Lab → · Contrast checker → · Palette generator →

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