#2D4DAB#2D4DAB

#2D4DAB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.155 H 266.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#2D4DAB
RGBrgb(45, 77, 171)
HSLhsl(225, 58%, 42%)
HSVhsv(225, 74%, 67%)
CMYKcmyk(73.7%, 55%, 0%, 32.9%)
CIE-LABlab(35.61, 21.84, -53.83)
CIE-LCHlch(35.61, 58.09, 292.09°)
OKLaboklab(45.29% -0.0106 -0.155)
OKLCHoklch(45.29% 0.155 266.1)
XYZxyz(11.0842, 8.8047, 39.6355)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4DAB #AB8B2D
analogous
#2D8CAB #2D4DAB #4C2DAB
triadic
#2D4DAB #AB2D4D #4DAB2D
tetradic
#2D4DAB #AB2D8C #AB8B2D #2DAB4C
square
#2D4DAB #AB2D8C #AB8B2D #2DAB4C
split-complementary
#2D4DAB #AB4C2D #8CAB2D
monochromatic
#14214A #20377B #2D4DAB #4769CE #7791DB

Accessibility & contrast

On white

7.61
#2D4DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2D4DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4DAB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4DAB#FFFFFF#000000##FFFFFF
##2D4DAB1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d4dab;
/* rgb */ color: rgb(45, 77, 171);
/* oklch */ color: oklch(45.3% 0.155 266.1);
Tailwind
colors: {
  custom: {
    50: '#777ec5',
    500: '#2d4dab',
    950: '#000000',
  },
}
SCSS
$custom: #2d4dab;
$custom-light: #777ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4dab",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 224.762,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45285,
    "c": 0.15541,
    "h": 266.1
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#2D4DAB
secondary
#C3AE71
accent
#BA46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2D4DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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