#2518B4#2518B4

#2518B4 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.6% C 0.223 H 271.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2518B4
RGBrgb(37, 24, 180)
HSLhsl(245, 76%, 40%)
HSVhsv(245, 87%, 71%)
CMYKcmyk(79.4%, 86.7%, 0%, 29.4%)
CIE-LABlab(24.77, 54.89, -77.03)
CIE-LCHlch(24.77, 94.59, 305.47°)
OKLaboklab(37.6% 0.0057 -0.2228)
OKLCHoklch(37.6% 0.223 271.5)
XYZxyz(9.3250, 4.3408, 43.5176)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2518B4 #A7B418
analogous
#1859B4 #2518B4 #7318B4
triadic
#2518B4 #B42518 #18B425
tetradic
#2518B4 #B41859 #A7B418 #18B473
square
#2518B4 #B41859 #A7B418 #18B473
split-complementary
#2518B4 #B47318 #59B418
monochromatic
#0F0A48 #1A117E #2518B4 #3727E2 #695DE9

Accessibility & contrast

On white

11.24
#2518B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2518B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2518B4
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2518B4#FFFFFF#000000##FFFFFF
##2518B41.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2518b4;
/* rgb */ color: rgb(37, 24, 180);
/* oklch */ color: oklch(37.6% 0.223 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ccc',
    500: '#2518b4',
    950: '#000000',
  },
}
SCSS
$custom: #2518b4;
$custom-light: #7b5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2518b4",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 245,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.37602,
    "c": 0.22285,
    "h": 271.5
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#2518B4
secondary
#C4CD5B
accent
#F335E3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2518B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2518B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva