#2540C6#2540C6

#2540C6 is a dark, highly saturated blue. Relative luminance 0.081; OKLCH L 44.9% C 0.209 H 267.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2540C6
RGBrgb(37, 64, 198)
HSLhsl(230, 69%, 46%)
HSVhsv(230, 81%, 78%)
CMYKcmyk(81.3%, 67.7%, 0%, 22.4%)
CIE-LABlab(34.26, 39.54, -71.95)
CIE-LCHlch(34.26, 82.10, 298.79°)
OKLaboklab(44.9% -0.0093 -0.2084)
OKLCHoklch(44.9% 0.209 267.4)
XYZxyz(12.7858, 8.1358, 54.3116)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2540C6 #C6AB25
analogous
#2590C6 #2540C6 #5A25C6
triadic
#2540C6 #C62540 #40C625
tetradic
#2540C6 #C62590 #C6AB25 #25C65A
square
#2540C6 #C62590 #C6AB25 #25C65A
split-complementary
#2540C6 #C65A25 #90C625
monochromatic
#121F5F #1B2F92 #2540C6 #4B63DD #7E90E7

Accessibility & contrast

On white

7.99
#2540C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2540C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2540C6
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2540C6#FFFFFF#000000##FFFFFF
##2540C61.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#0049C4
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2540c6;
/* rgb */ color: rgb(37, 64, 198);
/* oklch */ color: oklch(44.9% 0.209 267.4);
Tailwind
colors: {
  custom: {
    50: '#7c75d8',
    500: '#2540c6',
    950: '#000000',
  },
}
SCSS
$custom: #2540c6;
$custom-light: #7c75d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2540c6",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 229.938,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44904,
    "c": 0.20866,
    "h": 267.4
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#2540C6
secondary
#CFC177
accent
#CE3CEB
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2540C6

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

Preview Lab → · Contrast checker → · Palette generator →

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