#2D4D9F#2D4D9F

#2D4D9F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.139 H 265.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2D4D9F
RGBrgb(45, 77, 159)
HSLhsl(223, 56%, 40%)
HSVhsv(223, 72%, 62%)
CMYKcmyk(71.7%, 51.6%, 0%, 37.6%)
CIE-LABlab(34.74, 17.28, -48.05)
CIE-LCHlch(34.74, 51.07, 289.78°)
OKLaboklab(44.35% -0.0117 -0.138)
OKLCHoklch(44.35% 0.139 265.1)
XYZxyz(9.9919, 8.3678, 33.8827)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D9F #9F7F2D
analogous
#2D869F #2D4D9F #462D9F
triadic
#2D4D9F #9F2D4D #4D9F2D
tetradic
#2D4D9F #9F2D86 #9F7F2D #2D9F46
square
#2D4D9F #9F2D86 #9F7F2D #2D9F46
split-complementary
#2D4D9F #9F462D #869F2D
monochromatic
#121F40 #20366F #2D4D9F #4067C9 #708DD6

Accessibility & contrast

On white

7.85
#2D4D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2D4D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D9F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D9F#FFFFFF#000000##FFFFFF
##2D4D9F1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d4d9f;
/* rgb */ color: rgb(45, 77, 159);
/* oklch */ color: oklch(44.4% 0.139 265.1);
Tailwind
colors: {
  custom: {
    50: '#757ebc',
    500: '#2d4d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d9f;
$custom-light: #757ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d9f",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 159
  },
  "hsl": {
    "h": 223.158,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.44352,
    "c": 0.13855,
    "h": 265.1
  },
  "luminance": 0.08369
}

Semantic roles & 50–950 ramp

primary
#2D4D9F
secondary
#BEA66A
accent
#B549DF
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2D4D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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