#2541B4#2541B4

#2541B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.185 H 267.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2541B4
RGBrgb(37, 65, 180)
HSLhsl(228, 66%, 43%)
HSVhsv(228, 79%, 71%)
CMYKcmyk(79.4%, 63.9%, 0%, 29.4%)
CIE-LABlab(32.85, 32.28, -63.68)
CIE-LCHlch(32.85, 71.40, 296.88°)
OKLaboklab(43.36% -0.009 -0.1843)
OKLCHoklch(43.36% 0.185 267.2)
XYZxyz(10.8886, 7.4679, 44.0388)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541B4 #B49825
analogous
#2588B4 #2541B4 #5125B4
triadic
#2541B4 #B42541 #41B425
tetradic
#2541B4 #B42588 #B49825 #25B451
square
#2541B4 #B42588 #B49825 #25B451
split-complementary
#2541B4 #B45125 #88B425
monochromatic
#101C4E #1B2F81 #2541B4 #3F5DD7 #7188E2

Accessibility & contrast

On white

8.42
#2541B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2541B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2541B4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2541B4#FFFFFF#000000##FFFFFF
##2541B41.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2541b4;
/* rgb */ color: rgb(37, 65, 180);
/* oklch */ color: oklch(43.4% 0.185 267.2);
Tailwind
colors: {
  custom: {
    50: '#7875cb',
    500: '#2541b4',
    950: '#000000',
  },
}
SCSS
$custom: #2541b4;
$custom-light: #7875cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2541b4",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 228.252,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43363,
    "c": 0.18451,
    "h": 267.2
  },
  "luminance": 0.07469
}

Semantic roles & 50–950 ramp

primary
#2541B4
secondary
#C9B76C
accent
#C83FE9
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2541B4

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

Preview Lab → · Contrast checker → · Palette generator →

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