#2540BC#2540BC

#2540BC is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.196 H 267.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2540BC
RGBrgb(37, 64, 188)
HSLhsl(229, 67%, 44%)
HSVhsv(229, 80%, 74%)
CMYKcmyk(80.3%, 66%, 0%, 26.3%)
CIE-LABlab(33.33, 35.89, -67.63)
CIE-LCHlch(33.33, 76.56, 297.96°)
OKLaboklab(43.94% -0.0087 -0.1958)
OKLCHoklch(43.94% 0.196 267.4)
XYZxyz(11.6703, 7.6896, 48.4364)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2540BC #BCA125
analogous
#258BBC #2540BC #5625BC
triadic
#2540BC #BC2540 #40BC25
tetradic
#2540BC #BC258B #BCA125 #25BC56
square
#2540BC #BC258B #BCA125 #25BC56
split-complementary
#2540BC #BC5625 #8BBC25
monochromatic
#111D56 #1B2F89 #2540BC #445FDA #778BE4

Accessibility & contrast

On white

8.27
#2540BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2540BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2540BC
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2540BC#FFFFFF#000000##FFFFFF
##2540BC1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2540bc;
/* rgb */ color: rgb(37, 64, 188);
/* oklch */ color: oklch(43.9% 0.196 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a74d1',
    500: '#2540bc',
    950: '#000000',
  },
}
SCSS
$custom: #2540bc;
$custom-light: #7a74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2540bc",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 229.272,
    "s": 67.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43936,
    "c": 0.19602,
    "h": 267.4
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#2540BC
secondary
#CCBC71
accent
#CB3EEA
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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