#2D5CAB#2D5CAB

#2D5CAB is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.5% C 0.137 H 260.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2D5CAB
RGBrgb(45, 92, 171)
HSLhsl(218, 58%, 42%)
HSVhsv(218, 74%, 67%)
CMYKcmyk(73.7%, 46.2%, 0%, 32.9%)
CIE-LABlab(39.83, 11.95, -47.01)
CIE-LCHlch(39.83, 48.50, 284.26°)
OKLaboklab(48.51% -0.0234 -0.1347)
OKLCHoklch(48.51% 0.137 260.1)
XYZxyz(12.2574, 11.1511, 40.0266)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5CAB #AB7C2D
analogous
#2D9BAB #2D5CAB #3D2DAB
triadic
#2D5CAB #AB2D5C #5CAB2D
tetradic
#2D5CAB #AB2D9B #AB7C2D #2DAB3D
square
#2D5CAB #AB2D9B #AB7C2D #2DAB3D
split-complementary
#2D5CAB #AB3D2D #9BAB2D
monochromatic
#14284A #20427B #2D5CAB #4779CE #779CDB

Accessibility & contrast

On white

6.50
#2D5CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2D5CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5CAB
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5CAB#FFFFFF#000000##FFFFFF
##2D5CAB1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AE
Deuteranopia (green-blind)
#1858A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2d5cab;
/* rgb */ color: rgb(45, 92, 171);
/* oklch */ color: oklch(48.5% 0.137 260.1);
Tailwind
colors: {
  custom: {
    50: '#7789c4',
    500: '#2d5cab',
    950: '#000000',
  },
}
SCSS
$custom: #2d5cab;
$custom-light: #7789c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5cab",
  "rgb": {
    "r": 45,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 217.619,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4851,
    "c": 0.13673,
    "h": 260.1
  },
  "luminance": 0.11152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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