#2541AA#2541AA

#2541AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.171 H 267.0°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2541AA
RGBrgb(37, 65, 170)
HSLhsl(227, 64%, 41%)
HSVhsv(227, 78%, 67%)
CMYKcmyk(78.2%, 61.8%, 0%, 33.3%)
CIE-LABlab(31.98, 28.51, -59.15)
CIE-LCHlch(31.98, 65.66, 295.73°)
OKLaboklab(42.45% -0.0088 -0.171)
OKLCHoklch(42.45% 0.171 267)
XYZxyz(9.9064, 7.0751, 38.8659)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541AA #AA8E25
analogous
#2584AA #2541AA #4B25AA
triadic
#2541AA #AA2541 #41AA25
tetradic
#2541AA #AA2584 #AA8E25 #25AA4B
square
#2541AA #AA2584 #AA8E25 #25AA4B
split-complementary
#2541AA #AA4B25 #84AA25
monochromatic
#0F1B45 #1A2E78 #2541AA #3859D4 #6B83DF

Accessibility & contrast

On white

8.69
#2541AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2541AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2541AA#FFFFFF#000000##FFFFFF
##2541AA1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2541aa;
/* rgb */ color: rgb(37, 65, 170);
/* oklch */ color: oklch(42.4% 0.171 267.0);
Tailwind
colors: {
  custom: {
    50: '#7575c4',
    500: '#2541aa',
    950: '#000000',
  },
}
SCSS
$custom: #2541aa;
$custom-light: #7575c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2541aa",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 227.368,
    "s": 64.251,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42448,
    "c": 0.17125,
    "h": 267
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#2541AA
secondary
#C5B166
accent
#C441E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2541AA

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

Preview Lab → · Contrast checker → · Palette generator →

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