#2D51BE#2D51BE

#2D51BE is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.176 H 265.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2D51BE
RGBrgb(45, 81, 190)
HSLhsl(225, 62%, 46%)
HSVhsv(225, 76%, 75%)
CMYKcmyk(76.3%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.13, 26.38, -60.94)
CIE-LCHlch(38.13, 66.41, 293.41°)
OKLaboklab(47.64% -0.0125 -0.1759)
OKLCHoklch(47.64% 0.176 265.9)
XYZxyz(13.3156, 10.1590, 49.9643)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51BE #BE9A2D
analogous
#2D99BE #2D51BE #512DBE
triadic
#2D51BE #BE2D51 #51BE2D
tetradic
#2D51BE #BE2D99 #BE9A2D #2DBE51
square
#2D51BE #BE2D99 #BE9A2D #2DBE51
split-complementary
#2D51BE #BE512D #99BE2D
monochromatic
#16275B #213C8D #2D51BE #5273D6 #849BE2

Accessibility & contrast

On white

6.93
#2D51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2D51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D51BE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51BE#FFFFFF#000000##FFFFFF
##2D51BE1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d51be;
/* rgb */ color: rgb(45, 81, 190);
/* oklch */ color: oklch(47.6% 0.176 265.9);
Tailwind
colors: {
  custom: {
    50: '#7c81d2',
    500: '#2d51be',
    950: '#000000',
  },
}
SCSS
$custom: #2d51be;
$custom-light: #7c81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51be",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 225.103,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47637,
    "c": 0.17634,
    "h": 265.9
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#2D51BE
secondary
#CBB77C
accent
#BD43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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