#2D509E#2D509E

#2D509E is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.9% C 0.133 H 263.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2D509E
RGBrgb(45, 80, 158)
HSLhsl(221, 56%, 40%)
HSVhsv(221, 72%, 62%)
CMYKcmyk(71.5%, 49.4%, 0%, 38%)
CIE-LABlab(35.52, 14.90, -46.18)
CIE-LCHlch(35.52, 48.53, 287.88°)
OKLaboklab(44.93% -0.0146 -0.1325)
OKLCHoklch(44.93% 0.133 263.7)
XYZxyz(10.1202, 8.7628, 33.4992)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D509E #9E7B2D
analogous
#2D899E #2D509E #432D9E
triadic
#2D509E #9E2D50 #509E2D
tetradic
#2D509E #9E2D89 #9E7B2D #2D9E43
square
#2D509E #9E2D89 #9E7B2D #2D9E43
split-complementary
#2D509E #9E432D #899E2D
monochromatic
#12203F #1F386E #2D509E #406AC9 #6F8FD6

Accessibility & contrast

On white

7.63
#2D509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D509E
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D509E#FFFFFF#000000##FFFFFF
##2D509E1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A1
Deuteranopia (green-blind)
#024F9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d509e;
/* rgb */ color: rgb(45, 80, 158);
/* oklch */ color: oklch(44.9% 0.133 263.7);
Tailwind
colors: {
  custom: {
    50: '#7480bb',
    500: '#2d509e',
    950: '#000000',
  },
}
SCSS
$custom: #2d509e;
$custom-light: #7480bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d509e",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 221.416,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44929,
    "c": 0.1333,
    "h": 263.7
  },
  "luminance": 0.08764
}

Semantic roles & 50–950 ramp

primary
#2D509E
secondary
#BDA369
accent
#B049DF
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2D509E

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

Preview Lab → · Contrast checker → · Palette generator →

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