#2541A6#2541A6

#2541A6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.166 H 266.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2541A6
RGBrgb(37, 65, 166)
HSLhsl(227, 64%, 40%)
HSVhsv(227, 78%, 65%)
CMYKcmyk(77.7%, 60.8%, 0%, 34.9%)
CIE-LABlab(31.64, 26.98, -57.31)
CIE-LCHlch(31.64, 63.34, 295.21°)
OKLaboklab(42.09% -0.0088 -0.1656)
OKLCHoklch(42.09% 0.166 266.9)
XYZxyz(9.5338, 6.9260, 36.9034)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541A6 #A68A25
analogous
#2581A6 #2541A6 #4A25A6
triadic
#2541A6 #A62541 #41A625
tetradic
#2541A6 #A62581 #A68A25 #25A64A
square
#2541A6 #A62581 #A68A25 #25A64A
split-complementary
#2541A6 #A64A25 #81A625
monochromatic
#0F1A42 #1A2D74 #2541A6 #3658D2 #6882DD

Accessibility & contrast

On white

8.80
#2541A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2541A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2541A6#FFFFFF#000000##FFFFFF
##2541A61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2541a6;
/* rgb */ color: rgb(37, 65, 166);
/* oklch */ color: oklch(42.1% 0.166 266.9);
Tailwind
colors: {
  custom: {
    50: '#7475c1',
    500: '#2541a6',
    950: '#000000',
  },
}
SCSS
$custom: #2541a6;
$custom-light: #7475c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2541a6",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 166
  },
  "hsl": {
    "h": 226.977,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.16585,
    "h": 266.9
  },
  "luminance": 0.06927
}

Semantic roles & 50–950 ramp

primary
#2541A6
secondary
#C3AE64
accent
#C341E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2541A6

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

Preview Lab → · Contrast checker → · Palette generator →

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