#2D509C#2D509C

#2D509C is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.130 H 263.5°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2D509C
RGBrgb(45, 80, 156)
HSLhsl(221, 55%, 39%)
HSVhsv(221, 71%, 61%)
CMYKcmyk(71.2%, 48.7%, 0%, 38.8%)
CIE-LABlab(35.39, 14.14, -45.20)
CIE-LCHlch(35.39, 47.36, 287.37°)
OKLaboklab(44.78% -0.0149 -0.1296)
OKLCHoklch(44.78% 0.13 263.5)
XYZxyz(9.9495, 8.6945, 32.5999)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D509C #9C792D
analogous
#2D889C #2D509C #422D9C
triadic
#2D509C #9C2D50 #509C2D
tetradic
#2D509C #9C2D88 #9C792D #2D9C42
square
#2D509C #9C2D88 #9C792D #2D9C42
split-complementary
#2D509C #9C422D #889C2D
monochromatic
#121F3D #1F386D #2D509C #3F6AC8 #6E8FD5

Accessibility & contrast

On white

7.67
#2D509C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2D509C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D509C
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D509C#FFFFFF#000000##FFFFFF
##2D509C1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27599F
Deuteranopia (green-blind)
#0A4E9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d509c;
/* rgb */ color: rgb(45, 80, 156);
/* oklch */ color: oklch(44.8% 0.130 263.5);
Tailwind
colors: {
  custom: {
    50: '#7480ba',
    500: '#2d509c',
    950: '#000000',
  },
}
SCSS
$custom: #2d509c;
$custom-light: #7480ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d509c",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 156
  },
  "hsl": {
    "h": 221.081,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44783,
    "c": 0.13044,
    "h": 263.5
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#2D509C
secondary
#BCA268
accent
#AF49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D509C

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

Preview Lab → · Contrast checker → · Palette generator →

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