#2D519D#2D519D

#2D519D is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.131 H 263.1°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#2D519D
RGBrgb(45, 81, 157)
HSLhsl(221, 55%, 40%)
HSVhsv(221, 71%, 62%)
CMYKcmyk(71.3%, 48.4%, 0%, 38.4%)
CIE-LABlab(35.74, 13.86, -45.23)
CIE-LCHlch(35.74, 47.30, 287.03°)
OKLaboklab(45.08% -0.0156 -0.1297)
OKLCHoklch(45.08% 0.131 263.1)
XYZxyz(10.1083, 8.8760, 33.0723)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D519D #9D792D
analogous
#2D899D #2D519D #412D9D
triadic
#2D519D #9D2D51 #519D2D
tetradic
#2D519D #9D2D89 #9D792D #2D9D41
square
#2D519D #9D2D89 #9D792D #2D9D41
split-complementary
#2D519D #9D412D #899D2D
monochromatic
#12203E #1F386D #2D519D #3F6BC8 #6F90D6

Accessibility & contrast

On white

7.57
#2D519D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2D519D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D519D
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D519D#FFFFFF#000000##FFFFFF
##2D519D1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA0
Deuteranopia (green-blind)
#0C4F9B
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d519d;
/* rgb */ color: rgb(45, 81, 157);
/* oklch */ color: oklch(45.1% 0.131 263.1);
Tailwind
colors: {
  custom: {
    50: '#7481ba',
    500: '#2d519d',
    950: '#000000',
  },
}
SCSS
$custom: #2d519d;
$custom-light: #7481ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d519d",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 220.714,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45077,
    "c": 0.13061,
    "h": 263.1
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#2D519D
secondary
#BDA269
accent
#AF49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2D519D

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

Preview Lab → · Contrast checker → · Palette generator →

#2D519D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva