#2518B3#2518B3

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

Color values

HEX#2518B3
RGBrgb(37, 24, 179)
HSLhsl(245, 76%, 40%)
HSVhsv(245, 87%, 70%)
CMYKcmyk(79.3%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.64, 54.60, -76.65)
CIE-LCHlch(24.64, 94.10, 305.46°)
OKLaboklab(37.48% 0.006 -0.2217)
OKLCHoklch(37.48% 0.222 271.5)
XYZxyz(9.2235, 4.3002, 42.9830)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2518B3 #A6B318
analogous
#1859B3 #2518B3 #7218B3
triadic
#2518B3 #B32518 #18B325
tetradic
#2518B3 #B31859 #A6B318 #18B372
square
#2518B3 #B31859 #A6B318 #18B372
split-complementary
#2518B3 #B37218 #59B318
monochromatic
#0F0A47 #1A117D #2518B3 #3626E2 #685CE9

Accessibility & contrast

On white

11.29
#2518B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2518B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2518B3
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2518B3#FFFFFF#000000##FFFFFF
##2518B31.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2518b3;
/* rgb */ color: rgb(37, 24, 179);
/* oklch */ color: oklch(37.5% 0.222 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ccb',
    500: '#2518b3',
    950: '#000000',
  },
}
SCSS
$custom: #2518b3;
$custom-light: #7b5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2518b3",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 245.032,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37479,
    "c": 0.22175,
    "h": 271.5
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#2518B3
secondary
#C3CD5A
accent
#F335E3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2518B3

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

Preview Lab → · Contrast checker → · Palette generator →

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