#2D62B7#2D62B7

#2D62B7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.146 H 259.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2D62B7
RGBrgb(45, 98, 183)
HSLhsl(217, 61%, 45%)
HSVhsv(217, 75%, 72%)
CMYKcmyk(75.4%, 46.4%, 0%, 28.2%)
CIE-LABlab(42.32, 12.62, -50.06)
CIE-LCHlch(42.32, 51.63, 284.15°)
OKLaboklab(50.67% -0.0266 -0.1436)
OKLCHoklch(50.67% 0.146 259.5)
XYZxyz(13.9940, 12.7106, 46.5064)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D62B7 #B7822D
analogous
#2DA7B7 #2D62B7 #3D2DB7
triadic
#2D62B7 #B72D62 #62B72D
tetradic
#2D62B7 #B72DA7 #B7822D #2DB73D
square
#2D62B7 #B72DA7 #B7822D #2DB73D
split-complementary
#2D62B7 #B73D2D #A7B72D
monochromatic
#152D55 #214886 #2D62B7 #4E81D3 #7FA4DF

Accessibility & contrast

On white

5.93
#2D62B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2D62B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D62B7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D62B7#FFFFFF#000000##FFFFFF
##2D62B71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356BBA
Deuteranopia (green-blind)
#145EB5
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d62b7;
/* rgb */ color: rgb(45, 98, 183);
/* oklch */ color: oklch(50.7% 0.146 259.5);
Tailwind
colors: {
  custom: {
    50: '#798ecd',
    500: '#2d62b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d62b7;
$custom-light: #798ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d62b7",
  "rgb": {
    "r": 45,
    "g": 98,
    "b": 183
  },
  "hsl": {
    "h": 216.957,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50673,
    "c": 0.14603,
    "h": 259.5
  },
  "luminance": 0.12712
}

Semantic roles & 50–950 ramp

primary
#2D62B7
secondary
#C8A978
accent
#A644E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D62B7

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

Preview Lab → · Contrast checker → · Palette generator →

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