#2D509D#2D509D

#2D509D is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.132 H 263.6°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2D509D
RGBrgb(45, 80, 157)
HSLhsl(221, 55%, 40%)
HSVhsv(221, 71%, 62%)
CMYKcmyk(71.3%, 49%, 0%, 38.4%)
CIE-LABlab(35.46, 14.52, -45.69)
CIE-LCHlch(35.46, 47.94, 287.63°)
OKLaboklab(44.86% -0.0147 -0.131)
OKLCHoklch(44.86% 0.132 263.6)
XYZxyz(10.0345, 8.7285, 33.0477)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D509D #9D7A2D
analogous
#2D889D #2D509D #422D9D
triadic
#2D509D #9D2D50 #509D2D
tetradic
#2D509D #9D2D88 #9D7A2D #2D9D42
square
#2D509D #9D2D88 #9D7A2D #2D9D42
split-complementary
#2D509D #9D422D #889D2D
monochromatic
#12203E #1F386D #2D509D #3F6AC8 #6F8FD6

Accessibility & contrast

On white

7.65
#2D509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2D509D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D509D
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D509D#FFFFFF#000000##FFFFFF
##2D509D1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2659A0
Deuteranopia (green-blind)
#064F9B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d509d;
/* rgb */ color: rgb(45, 80, 157);
/* oklch */ color: oklch(44.9% 0.132 263.6);
Tailwind
colors: {
  custom: {
    50: '#7480ba',
    500: '#2d509d',
    950: '#000000',
  },
}
SCSS
$custom: #2d509d;
$custom-light: #7480ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d509d",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 221.25,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44856,
    "c": 0.13187,
    "h": 263.6
  },
  "luminance": 0.0873
}

Semantic roles & 50–950 ramp

primary
#2D509D
secondary
#BDA369
accent
#B049DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2D509D

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

Preview Lab → · Contrast checker → · Palette generator →

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