#2D5DAB#2D5DAB

#2D5DAB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.136 H 259.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2D5DAB
RGBrgb(45, 93, 171)
HSLhsl(217, 58%, 42%)
HSVhsv(217, 74%, 67%)
CMYKcmyk(73.7%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.12, 11.30, -46.54)
CIE-LCHlch(40.12, 47.89, 283.65°)
OKLaboklab(48.73% -0.0243 -0.1333)
OKLCHoklch(48.73% 0.136 259.7)
XYZxyz(12.3446, 11.3255, 40.0556)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5DAB #AB7B2D
analogous
#2D9CAB #2D5DAB #3C2DAB
triadic
#2D5DAB #AB2D5D #5DAB2D
tetradic
#2D5DAB #AB2D9C #AB7B2D #2DAB3C
square
#2D5DAB #AB2D9C #AB7B2D #2DAB3C
split-complementary
#2D5DAB #AB3C2D #9CAB2D
monochromatic
#14284A #20437B #2D5DAB #477ACE #779DDB

Accessibility & contrast

On white

6.43
#2D5DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2D5DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5DAB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5DAB#FFFFFF#000000##FFFFFF
##2D5DAB1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#1B59A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5dab;
/* rgb */ color: rgb(45, 93, 171);
/* oklch */ color: oklch(48.7% 0.136 259.7);
Tailwind
colors: {
  custom: {
    50: '#778ac4',
    500: '#2d5dab',
    950: '#000000',
  },
}
SCSS
$custom: #2d5dab;
$custom-light: #778ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5dab",
  "rgb": {
    "r": 45,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 217.143,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48733,
    "c": 0.13551,
    "h": 259.7
  },
  "luminance": 0.11327
}

Semantic roles & 50–950 ramp

primary
#2D5DAB
secondary
#C3A471
accent
#A646E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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