#2541AF#2541AF

#2541AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.178 H 267.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2541AF
RGBrgb(37, 65, 175)
HSLhsl(228, 65%, 42%)
HSVhsv(228, 79%, 69%)
CMYKcmyk(78.9%, 62.9%, 0%, 31.4%)
CIE-LABlab(32.41, 30.40, -61.43)
CIE-LCHlch(32.41, 68.54, 296.33°)
OKLaboklab(42.9% -0.0089 -0.1777)
OKLCHoklch(42.9% 0.178 267.1)
XYZxyz(10.3884, 7.2679, 41.4045)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2541AF #AF9325
analogous
#2586AF #2541AF #4E25AF
triadic
#2541AF #AF2541 #41AF25
tetradic
#2541AF #AF2586 #AF9325 #25AF4E
square
#2541AF #AF2586 #AF9325 #25AF4E
split-complementary
#2541AF #AF4E25 #86AF25
monochromatic
#101B4A #1A2E7C #2541AF #3C5BD6 #6E85E0

Accessibility & contrast

On white

8.56
#2541AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2541AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2541AF#FFFFFF#000000##FFFFFF
##2541AF1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2541af;
/* rgb */ color: rgb(37, 65, 175);
/* oklch */ color: oklch(42.9% 0.178 267.1);
Tailwind
colors: {
  custom: {
    50: '#7775c8',
    500: '#2541af',
    950: '#000000',
  },
}
SCSS
$custom: #2541af;
$custom-light: #7775c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2541af",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 227.826,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.17792,
    "h": 267.1
  },
  "luminance": 0.07269
}

Semantic roles & 50–950 ramp

primary
#2541AF
secondary
#C7B469
accent
#C640E8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2541AF

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

Preview Lab → · Contrast checker → · Palette generator →

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