#2541A3#2541A3

#2541A3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.162 H 266.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2541A3
RGBrgb(37, 65, 163)
HSLhsl(227, 63%, 39%)
HSVhsv(227, 77%, 64%)
CMYKcmyk(77.3%, 60.1%, 0%, 36.1%)
CIE-LABlab(31.39, 25.83, -55.91)
CIE-LCHlch(31.39, 61.59, 294.80°)
OKLaboklab(41.83% -0.0089 -0.1615)
OKLCHoklch(41.83% 0.162 266.8)
XYZxyz(9.2618, 6.8172, 35.4710)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541A3 #A38725
analogous
#2580A3 #2541A3 #4825A3
triadic
#2541A3 #A32541 #41A325
tetradic
#2541A3 #A32580 #A38725 #25A348
square
#2541A3 #A32580 #A38725 #25A348
split-complementary
#2541A3 #A34825 #80A325
monochromatic
#0E193F #1A2D71 #2541A3 #3457D1 #6680DC

Accessibility & contrast

On white

8.88
#2541A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2541A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2541A3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2541A3#FFFFFF#000000##FFFFFF
##2541A31.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2541a3;
/* rgb */ color: rgb(37, 65, 163);
/* oklch */ color: oklch(41.8% 0.162 266.8);
Tailwind
colors: {
  custom: {
    50: '#7475bf',
    500: '#2541a3',
    950: '#000000',
  },
}
SCSS
$custom: #2541a3;
$custom-light: #7475bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2541a3",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 163
  },
  "hsl": {
    "h": 226.667,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41826,
    "c": 0.16176,
    "h": 266.8
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#2541A3
secondary
#C2AD62
accent
#C242E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2541A3

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

Preview Lab → · Contrast checker → · Palette generator →

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