#2E5FBA#2E5FBA

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

Color values

HEX#2E5FBA
RGBrgb(46, 95, 186)
HSLhsl(219, 60%, 45%)
HSVhsv(219, 75%, 73%)
CMYKcmyk(75.3%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.70, 15.83, -52.81)
CIE-LCHlch(41.70, 55.13, 286.69°)
OKLaboklab(50.27% -0.0229 -0.1517)
OKLCHoklch(50.27% 0.153 261.4)
XYZxyz(14.0787, 12.3089, 48.0787)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FBA #BA892E
analogous
#2EA5BA #2E5FBA #432EBA
triadic
#2E5FBA #BA2E5F #5FBA2E
tetradic
#2E5FBA #BA2EA5 #BA892E #2EBA43
square
#2E5FBA #BA2EA5 #BA892E #2EBA43
split-complementary
#2E5FBA #BA432E #A5BA2E
monochromatic
#162D58 #224689 #2E5FBA #517FD4 #82A3E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E5FBA#FFFFFF#000000##FFFFFF
##2E5FBA1.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)
#2B69BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2e5fba;
/* rgb */ color: rgb(46, 95, 186);
/* oklch */ color: oklch(50.3% 0.153 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bcf',
    500: '#2e5fba',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fba;
$custom-light: #7a8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fba",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 219,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.15343,
    "h": 261.4
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#2E5FBA
secondary
#C9AE7B
accent
#AC44E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2E5FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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