#2541A8#2541A8

#2541A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.169 H 267.0°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#2541A8
RGBrgb(37, 65, 168)
HSLhsl(227, 64%, 40%)
HSVhsv(227, 78%, 66%)
CMYKcmyk(78%, 61.3%, 0%, 34.1%)
CIE-LABlab(31.81, 27.74, -58.23)
CIE-LCHlch(31.81, 64.50, 295.47°)
OKLaboklab(42.27% -0.0088 -0.1683)
OKLCHoklch(42.27% 0.169 267)
XYZxyz(9.7187, 7.0000, 37.8771)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541A8 #A88C25
analogous
#2582A8 #2541A8 #4B25A8
triadic
#2541A8 #A82541 #41A825
tetradic
#2541A8 #A82582 #A88C25 #25A84B
square
#2541A8 #A82582 #A88C25 #25A84B
split-complementary
#2541A8 #A84B25 #82A825
monochromatic
#0F1A44 #1A2E76 #2541A8 #3759D3 #6982DE

Accessibility & contrast

On white

8.75
#2541A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2541A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2541A8#FFFFFF#000000##FFFFFF
##2541A81.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2541a8;
/* rgb */ color: rgb(37, 65, 168);
/* oklch */ color: oklch(42.3% 0.169 267.0);
Tailwind
colors: {
  custom: {
    50: '#7575c3',
    500: '#2541a8',
    950: '#000000',
  },
}
SCSS
$custom: #2541a8;
$custom-light: #7575c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2541a8",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 227.176,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42269,
    "c": 0.16855,
    "h": 267
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#2541A8
secondary
#C4B065
accent
#C341E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2541A8

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

Preview Lab → · Contrast checker → · Palette generator →

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