#2540AE#2540AE

#2540AE is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.178 H 267.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2540AE
RGBrgb(37, 64, 174)
HSLhsl(228, 65%, 41%)
HSVhsv(228, 79%, 68%)
CMYKcmyk(78.7%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.07, 30.68, -61.40)
CIE-LCHlch(32.07, 68.64, 296.55°)
OKLaboklab(42.62% -0.0082 -0.1776)
OKLCHoklch(42.62% 0.178 267.3)
XYZxyz(10.2337, 7.1149, 40.8702)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2540AE #AE9325
analogous
#2585AE #2540AE #4F25AE
triadic
#2540AE #AE2540 #40AE25
tetradic
#2540AE #AE2585 #AE9325 #25AE4F
square
#2540AE #AE2585 #AE9325 #25AE4F
split-complementary
#2540AE #AE4F25 #85AE25
monochromatic
#101B49 #1A2D7C #2540AE #3B59D5 #6D84E0

Accessibility & contrast

On white

8.67
#2540AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2540AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2540AE
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2540AE#FFFFFF#000000##FFFFFF
##2540AE1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2540ae;
/* rgb */ color: rgb(37, 64, 174);
/* oklch */ color: oklch(42.6% 0.178 267.3);
Tailwind
colors: {
  custom: {
    50: '#7674c7',
    500: '#2540ae',
    950: '#000000',
  },
}
SCSS
$custom: #2540ae;
$custom-light: #7674c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2540ae",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 228.175,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42622,
    "c": 0.17779,
    "h": 267.3
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#2540AE
secondary
#C6B468
accent
#C740E8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2540AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2540AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva