#2D5BCA#2D5BCA

#2D5BCA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.180 H 264.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#2D5BCA
RGBrgb(45, 91, 202)
HSLhsl(222, 64%, 48%)
HSVhsv(222, 78%, 79%)
CMYKcmyk(77.7%, 55%, 0%, 20.8%)
CIE-LABlab(41.69, 24.38, -62.12)
CIE-LCHlch(41.69, 66.73, 291.43°)
OKLaboklab(50.61% -0.0188 -0.1792)
OKLCHoklch(50.61% 0.18 264)
XYZxyz(15.4802, 12.3025, 57.4244)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5BCA #CA9C2D
analogous
#2DA9CA #2D5BCA #4D2DCA
triadic
#2D5BCA #CA2D5B #5BCA2D
tetradic
#2D5BCA #CA2DA9 #CA9C2D #2DCA4D
square
#2D5BCA #CA2DA9 #CA9C2D #2DCA4D
split-complementary
#2D5BCA #CA4D2D #A9CA2D
monochromatic
#172E66 #224498 #2D5BCA #5A80DA #8CA6E5

Accessibility & contrast

On white

6.07
#2D5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2D5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5BCA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5BCA#FFFFFF#000000##FFFFFF
##2D5BCA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5bca;
/* rgb */ color: rgb(45, 91, 202);
/* oklch */ color: oklch(50.6% 0.180 264.0);
Tailwind
colors: {
  custom: {
    50: '#7e88db',
    500: '#2d5bca',
    950: '#000000',
  },
}
SCSS
$custom: #2d5bca;
$custom-light: #7e88db;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5bca",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 222.42,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50608,
    "c": 0.18017,
    "h": 264
  },
  "luminance": 0.12304
}

Semantic roles & 50–950 ramp

primary
#2D5BCA
secondary
#CFB983
accent
#B641E7
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2D5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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