#2541B2#2541B2

#2541B2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.182 H 267.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2541B2
RGBrgb(37, 65, 178)
HSLhsl(228, 66%, 42%)
HSVhsv(228, 79%, 70%)
CMYKcmyk(79.2%, 63.5%, 0%, 30.2%)
CIE-LABlab(32.67, 31.53, -62.79)
CIE-LCHlch(32.67, 70.26, 296.66°)
OKLaboklab(43.18% -0.0089 -0.1817)
OKLCHoklch(43.18% 0.182 267.2)
XYZxyz(10.6863, 7.3870, 42.9735)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541B2 #B29625
analogous
#2588B2 #2541B2 #5025B2
triadic
#2541B2 #B22541 #41B225
tetradic
#2541B2 #B22588 #B29625 #25B250
square
#2541B2 #B22588 #B29625 #25B250
split-complementary
#2541B2 #B25025 #88B225
monochromatic
#101C4D #1A2E7F #2541B2 #3D5CD7 #7087E1

Accessibility & contrast

On white

8.48
#2541B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2541B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2541B2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2541B2#FFFFFF#000000##FFFFFF
##2541B21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2541b2;
/* rgb */ color: rgb(37, 65, 178);
/* oklch */ color: oklch(43.2% 0.182 267.2);
Tailwind
colors: {
  custom: {
    50: '#7775ca',
    500: '#2541b2',
    950: '#000000',
  },
}
SCSS
$custom: #2541b2;
$custom-light: #7775ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2541b2",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 228.085,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43178,
    "c": 0.18188,
    "h": 267.2
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#2541B2
secondary
#C8B66B
accent
#C73FE9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2541B2

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

Preview Lab → · Contrast checker → · Palette generator →

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