#2D50BA#2D50BA

#2D50BA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.172 H 266.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2D50BA
RGBrgb(45, 80, 186)
HSLhsl(225, 61%, 45%)
HSVhsv(225, 76%, 73%)
CMYKcmyk(75.8%, 57%, 0%, 27.1%)
CIE-LABlab(37.55, 25.53, -59.53)
CIE-LCHlch(37.55, 64.78, 293.21°)
OKLaboklab(47.11% -0.012 -0.1718)
OKLCHoklch(47.11% 0.172 266)
XYZxyz(12.8107, 9.8390, 47.6688)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D50BA #BA972D
analogous
#2D97BA #2D50BA #502DBA
triadic
#2D50BA #BA2D50 #50BA2D
tetradic
#2D50BA #BA2D97 #BA972D #2DBA50
square
#2D50BA #BA2D97 #BA972D #2DBA50
split-complementary
#2D50BA #BA502D #97BA2D
monochromatic
#152657 #213B89 #2D50BA #5071D5 #8199E0

Accessibility & contrast

On white

7.08
#2D50BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D50BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D50BA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D50BA#FFFFFF#000000##FFFFFF
##2D50BA1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d50ba;
/* rgb */ color: rgb(45, 80, 186);
/* oklch */ color: oklch(47.1% 0.172 266.0);
Tailwind
colors: {
  custom: {
    50: '#7b80d0',
    500: '#2d50ba',
    950: '#000000',
  },
}
SCSS
$custom: #2d50ba;
$custom-light: #7b80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d50ba",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 186
  },
  "hsl": {
    "h": 225.106,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47108,
    "c": 0.17219,
    "h": 266
  },
  "luminance": 0.0984
}

Semantic roles & 50–950 ramp

primary
#2D50BA
secondary
#C9B679
accent
#BC44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D50BA

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

Preview Lab → · Contrast checker → · Palette generator →

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