#2541A2#2541A2

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

Color values

HEX#2541A2
RGBrgb(37, 65, 162)
HSLhsl(227, 63%, 39%)
HSVhsv(227, 77%, 64%)
CMYKcmyk(77.2%, 59.9%, 0%, 36.5%)
CIE-LABlab(31.30, 25.45, -55.45)
CIE-LCHlch(31.30, 61.01, 294.65°)
OKLaboklab(41.74% -0.0089 -0.1601)
OKLCHoklch(41.74% 0.16 266.8)
XYZxyz(9.1726, 6.7815, 35.0010)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541A2 #A28625
analogous
#2580A2 #2541A2 #4825A2
triadic
#2541A2 #A22541 #41A225
tetradic
#2541A2 #A22580 #A28625 #25A248
square
#2541A2 #A22580 #A28625 #25A248
split-complementary
#2541A2 #A24825 #80A225
monochromatic
#0E193E #1A2D70 #2541A2 #3457D1 #6580DC

Accessibility & contrast

On white

8.91
#2541A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2541A2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2541A2#FFFFFF#000000##FFFFFF
##2541A21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2541a2;
/* rgb */ color: rgb(37, 65, 162);
/* oklch */ color: oklch(41.7% 0.160 266.8);
Tailwind
colors: {
  custom: {
    50: '#7375be',
    500: '#2541a2',
    950: '#000000',
  },
}
SCSS
$custom: #2541a2;
$custom-light: #7375be;
$custom-dark: #000000;
JSON
{
  "hex": "#2541a2",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 226.56,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41738,
    "c": 0.16039,
    "h": 266.8
  },
  "luminance": 0.06783
}

Semantic roles & 50–950 ramp

primary
#2541A2
secondary
#C2AC61
accent
#C142E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2541A2

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

Preview Lab → · Contrast checker → · Palette generator →

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